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

Programming

17669 readers
173 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 [email protected]



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] DeprecatedCompatV2 7 points 5 months ago (1 children)

Yesterday, for capturing URLs.

[โ€“] [email protected] 3 points 5 months ago (1 children)

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

I am kinda learning RE right now ๐Ÿ˜…

[โ€“] DeprecatedCompatV2 4 points 5 months ago (1 children)
[โ€“] [email protected] 1 points 5 months ago (1 children)

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

[โ€“] sukhmel 1 points 5 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