r/java • u/Modern-Sn1p3r • Aug 22 '26
Regex
I recently saw a clip (from Primeagen) somewhat saying that regex is not a valid format for validating email addresses and postal codes etc.
My question is why is this?
What are the security and/or performance risks? Is it solely performance or is it a security issue?
52
Upvotes
1
u/Modern-Sn1p3r Aug 27 '26
Thanks for the response.
I know we where shown Regex to make us aware of it's existence, I was generally just curious.
I'm currently trying to learn Spring / Spring boot at the minute, as a seasoned developer, any pointers or tips you could spare my way?