Copied to clipboard

Flag this post as spam?

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


  • Mike Chambers 635 posts 1252 karma points c-trib
    Nov 08, 2010 @ 15:43
    Mike Chambers
    0

    default email regexp doesn't allow .co.uk addresses

    the default regexp for email validaton on the send email template is a little too restrictive.standard send email - email regex validation doens't allow .co.uk domains.

    ^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$

    only allows for a single 2 or 3 letter 

    so will fail for [email protected] :-(

    MS email validation is \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Nov 08, 2010 @ 16:54
    Ismail Mayat
    0

    Mike,

    I got caught with that the other day, replaced it with ms one and it worked.

    Regards

    Ismail

  • Mike Chambers 635 posts 1252 karma points c-trib
    Nov 08, 2010 @ 16:56
    Mike Chambers
    0

    Yep I did to... just posted here for the contour devs to see, as sending from the "spotted a bug page" of the contour branch or umbraco just disappears into the ether...

    thanks.

  • Donald St. Martin 83 posts 128 karma points
    Nov 22, 2010 @ 15:41
    Donald St. Martin
    0

    In case anyone lands on this topic that needs an updated regex, I use:
    [a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?

    --
    Donald

  • Sam 184 posts 209 karma points
    May 17, 2011 @ 21:47
    Sam
    0

    Thanks Donald,

    That was a great help :)

    Sam.

Please Sign in or register to post replies

Write your reply to:

Draft