▲ 25 ▼ last time when did you use Regular Expressions? (lemmy.ca) submitted 2 years ago by kionite231@lemmy.ca to c/programming@programming.dev 31 comments fedilink hide all child comments
[–] kionite231@lemmy.ca [S] 3 points 2 years ago (1 child) https?//[a-zA-Z0-9_-]* I am kinda learning RE right now 😅 permalink fedilink source parent hideshow 2 child comments replies: [–] DeprecatedCompatV2@programming.dev 4 points 2 years ago (1 child) What about ftp? 🤔 permalink fedilink source parent hideshow 2 child comments replies: [–] kionite231@lemmy.ca [S] 1 point 2 years ago (1 child) If we want to include every protocol then the RE could be complex. permalink fedilink source parent hideshow 2 child comments replies: [–] sukhmel@programming.dev 1 point 2 years 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 permalink fedilink source parent
[–] DeprecatedCompatV2@programming.dev 4 points 2 years ago (1 child) What about ftp? 🤔 permalink fedilink source parent hideshow 2 child comments replies: [–] kionite231@lemmy.ca [S] 1 point 2 years ago (1 child) If we want to include every protocol then the RE could be complex. permalink fedilink source parent hideshow 2 child comments replies: [–] sukhmel@programming.dev 1 point 2 years 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 permalink fedilink source parent
[–] kionite231@lemmy.ca [S] 1 point 2 years ago (1 child) If we want to include every protocol then the RE could be complex. permalink fedilink source parent hideshow 2 child comments replies: [–] sukhmel@programming.dev 1 point 2 years 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 permalink fedilink source parent
[–] sukhmel@programming.dev 1 point 2 years 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 permalink fedilink source parent