25
you are viewing a single comment's thread
view the rest of the comments
[-] DeprecatedCompatV2@programming.dev 7 points 4 months ago

Yesterday, for capturing URLs.

[-] kionite231@lemmy.ca 3 points 4 months ago

https?//[a-zA-Z0-9_-]*

I am kinda learning RE right now ๐Ÿ˜…

[-] DeprecatedCompatV2@programming.dev 4 points 4 months ago
[-] kionite231@lemmy.ca 1 points 4 months ago

If we want to include every protocol then the RE could be complex.

[-] sukhmel@programming.dev 1 points 4 months ago

Depending on the use-case it maybe should. On the other hand, some things are better left to library implementations rather than custom regex, e.g. email validation

this post was submitted on 04 Jul 2024
25 points (93.1% liked)

Programming

17314 readers
310 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS