Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / January 2006

Tip: Looking for answers? Try searching our database.

Regular expressions valid for the Pattern Matching?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob C. - 30 Jan 2006 21:49 GMT
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})(\]?)$
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.