Copied to clipboard

Flag this post as spam?

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


  • Probocop 51 posts 71 karma points
    Sep 15, 2010 @ 11:49
    Probocop
    0

    Email validation failing for UK (.co.uk) email addresses

    I have a simple 'Contact Us' form on the site I am building, which features an email field. If I put in an email address with a .com on the end everything works fine. But If I try and enter an email address with .co.uk on the end then the validation flags it as not valid. How would I get around this issue?

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Sep 15, 2010 @ 12:26
    Tim Geyssens
    0

    Hi,

    Simply update the regex on the email field (expand the additional settings to view the input)

     

  • Probocop 51 posts 71 karma points
    Sep 15, 2010 @ 12:32
    Probocop
    0

    Perfect, thank you.

  • John 27 posts 49 karma points
    Mar 04, 2011 @ 11:43
    John
    0

    You may want to use the regex below

    ^([\w\d\-\.]+)@{1}(([\w\d\-]{1,67})|([\w\d\-]+\.[\w\d\-]{1,67}))\.(([a-zA-Z\d]{2,4})(\.[a-zA-Z\d]{2})?)$

    Thanks

    John

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Mar 04, 2011 @ 12:09
    Tim Geyssens
    0

    btw default regex in form template has been updated in maintenance release this week

  • 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