J
jmhmaine
I use the following Regular Expression to check the format of the text in a
textbox when requesting an email:
ValidationExpression="^[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$"
It works great, but I just discovered a bug if someone provides a single
character before the @ sign. The following doesn't pass:
(e-mail address removed)
Is there a quick fix or better Expression to use? Thanks.
textbox when requesting an email:
ValidationExpression="^[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$"
It works great, but I just discovered a bug if someone provides a single
character before the @ sign. The following doesn't pass:
(e-mail address removed)
Is there a quick fix or better Expression to use? Thanks.