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

Programming

17362 readers
316 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
you are viewing a single comment's thread
view the rest of the comments
[โ€“] DeprecatedCompatV2@programming.dev 7 points 4 months ago (4 children)

Yesterday, for capturing URLs.

[โ€“] kionite231@lemmy.ca 3 points 4 months ago (3 children)

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

I am kinda learning RE right now ๐Ÿ˜…

[โ€“] DeprecatedCompatV2@programming.dev 4 points 4 months ago (1 children)
[โ€“] kionite231@lemmy.ca 1 points 4 months ago (1 children)

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

load more comments (1 replies)
load more comments (1 replies)