Email validation pattern - InfoPath Dev

InfoPath Dev

Use our Google Custom Search for best site search results.

Email validation pattern

Last post 05-01-2009 01:19 AM by Samir Farid. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 02-14-2007 08:24 AM

    Email validation pattern

    I found this from previous post: (.+)@(\w+)(\.\w+)*\.(\w{2,6})

    Can someone explain what it means?

    I don't see "\w" in IP, and have no idea about "{2,6}"

  • 02-14-2007 11:04 AM In reply to

    Re: Email validation pattern

    Hi Troy0118,
    Excellent question. This is a regular expression. It is meant to map an e-mail address. The \w means word I think. Another example that matches e-mail address is: \b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b. You can use as a reference.
    Patrick Halstead
    Project Manager at Qdabra
  • 02-14-2007 11:24 AM In reply to

    Re: Email validation pattern

    Hi Patrick,
    really helpful, thanks.

  • 04-24-2009 05:50 AM In reply to

    Re: Email validation pattern


    I dont understand this, but I tried to put:







    Button properties

    ->Set condition

    -> matches pattern

    ->custom pattern

    But it prompts:

    The pattern is not valid??? Why?

    I have tried another 5 different email patterns (based on various blogs) but none of them work correctly, but this is first time the pattern is not even accepted. Is too much for me. I only want to now what is the correct pattern for email. Please help me.


  • 05-01-2009 01:19 AM In reply to

    Re: Email validation pattern

    Hi Valtteri,

    You can try this pattern. It covered 95 % all e-mail addresses that I can come up with.


    But it still needs a small bit of fixing as it allows.

    ex. / ..etc



Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.