Can anybody please have a look at
https://regex101.com/r/ApWCG0/1
and correct the regex so that it doesn't give timeout or doesn't cause infinite loop ?
I have been testing it in nodejs and getting an infinite loop and getting in timeout in Regex testing websites.
I have been searching for it for a while on stackoverflow and other websites but couldn't find it. Sorry, if this thread has a duplicate.
my email regex is
[a-zA-Z0-9_\-.]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-.]+
Hope somebody get through this.
Update:
[a-zA-Z0-9_\-.]{2,64}@[a-zA-Z0-9\-]{2,64}\.[a-zA-Z0-9\-.]{2,64}
This is covering most cases. I am just restricting the number of characters.