DEV Community

Discussion on: 4 Practical Use Cases for Regular Expressions

Collapse
 
deleteman123 profile image
Fernando Doglio • Edited

Thanks for reading and sharing your comments!
As for your response:

Please don't be so harsh on password rules, the only rule would be to have a lower size limit, but defining a charset only simplifies attack vectors.

Correct, I was just showing a crazy example with different limitations to check for and I used the use case of password verification. I do agree with you that there are more secure alternatives, this article isn't about security but rather about the power of regular expressions.

Also, please never never ever validate emails through such a complicated regex.

Same as before, the point was to show a possible way to do just that, if you wanted to provide an exhaustive format validation there are probably better ways to do it.

Again, thanks so much for share, I think your comments are very valid and should be taken into account by anyone reading this article and trying to copy&paste for a quick fix.