whoareu to Programming@programming.devEnglish · 6 months agolast time when did you use Regular Expressions?message-squaremessage-square34fedilinkarrow-up127arrow-down12
arrow-up125arrow-down1message-squarelast time when did you use Regular Expressions?whoareu to Programming@programming.devEnglish · 6 months agomessage-square34fedilink
minus-squareDeprecatedCompatV2@programming.devlinkfedilinkarrow-up7·6 months agoYesterday, for capturing URLs.
minus-squarewhoareuOPlinkfedilinkarrow-up3·6 months agohttps?//[a-zA-Z0-9_-]* I am kinda learning RE right now 😅
minus-squarewhoareuOPlinkfedilinkarrow-up2arrow-down1·6 months agoIf we want to include every protocol then the RE could be complex.
minus-squarelad@programming.devlinkfedilinkEnglisharrow-up1·6 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