Regular expressions valid for the Pattern Matching?

B

Bob C.

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})(\]?)$
 
B

Bob C.

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top