I have a regular expression that works fine for emails but it also allows angle brackets "<" and ">".
It crashes the page if there are angle brackets in the email.
My expression is: @"[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}"
I would assume this would not work since I say only allow certain letters and none are angle brackets.
It allows "tom <tom@aol.com>" to go through fine.
Why does it work and what can I do to fix it?
Thanks,
Tom
It crashes the page if there are angle brackets in the email.
My expression is: @"[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}"
I would assume this would not work since I say only allow certain letters and none are angle brackets.
It allows "tom <tom@aol.com>" to go through fine.
Why does it work and what can I do to fix it?
Thanks,
Tom