I'm trying to modify a regular expression for an email address. It has recently come to my attention that the + is an acceptable character in the first part of an email address. Here's the expression as is:
^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$
I'd like to insert before the @ an optional +, but if you use plus then there should be more 1 or more characters after the plus. How do I do this?
^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$
I'd like to insert before the @ an optional +, but if you use plus then there should be more 1 or more characters after the plus. How do I do this?