What regular expressions are valid? I've found this pattern that should
validate email addresses, but rejects everything.
^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$
Bob C. - 31 Jan 2006 06:12 GMT
Found an earlier post that indicated removing the ^ and trailing $ chars.
Once I removed those, the expression worked fine.
So with that, try out the Regulator tool... minus the leading ^ and trailing $
http://regex.osherove.com/
> What regular expressions are valid? I've found this pattern that should
> validate email addresses, but rejects everything.
>
> ^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$