whoareu to [email protected]English • 10 months agolast time when did you use Regular Expressions?message-square34fedilinkarrow-up128
arrow-up128message-squarelast time when did you use Regular Expressions?whoareu to [email protected]English • 10 months agomessage-square34fedilink
minus-squarewhoareuOPlinkfedilink3•10 months agohttps?//[a-zA-Z0-9_-]* I am kinda learning RE right now 😅
minus-squarewhoareuOPlinkfedilink2•10 months agoIf we want to include every protocol then the RE could be complex.
minus-squareladlinkfedilinkEnglish1•10 months agoDepending 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
Yesterday, for capturing URLs.
https?//[a-zA-Z0-9_-]*
I am kinda learning RE right now 😅
What about ftp? 🤔
If we want to include every protocol then the RE could be complex.
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