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?

  • Comment author was deleted

    Sep 15, 2010 @ 12:26

    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

  • Comment author was deleted

    Mar 04, 2011 @ 12:09

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

Please Sign in or register to post replies

Write your reply to:

Draft