Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Garrett Fisher 341 posts 496 karma points
    Feb 11, 2010 @ 16:26
    Garrett Fisher
    0

    email address validation

    Is it possible that Contour has overlooked email address validation??  Doesn't make sense, based on how advanced it is.  I guess I'm supposed to use a regular expression?  What is the standard regular expression for an email address?  Anyone?

    Thanks,

    Garrett

  • dandrayne 1138 posts 2262 karma points
    Feb 11, 2010 @ 16:30
    dandrayne
    1

    Hi Garrett

    When editing fields of document types, you can click the "search for regular expression", then type "email" in the search field to get a list of options.  An example is

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

    But be sure and test it against edge-case email addresses such as  [email protected]

    Dan

  • Harald Ulriksen 207 posts 248 karma points
    Feb 12, 2010 @ 11:29
    Harald Ulriksen
    0

     Validating e-mail addresses correctly according to the RFC is not easy. See http://www.regular-expressions.info/email.html, the question is how accurate do you need to be..

  • Garrett Fisher 341 posts 496 karma points
    Feb 12, 2010 @ 17:55
    Garrett Fisher
    0

    That's exactly where I went, thanks, and I found the one that works best for me.  Thanks for your help guys!

    //Garrett

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies