• Resolved robhern135

    (@robhern135)


    Hello,

    I am currently using the below regex pattern for the email field.

    I only want emails with @example.com or @exampledomain.com to be able to sign up.

    ^[A-Za-z0-9._%+-]+example.com|exampledomain.com$

    I ran it through a regex validator and it says the email [email protected] passes but when I try to register on the site it says “Please match the format requested. Email Address”.

    Could you please advise?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Regex Validation Pattern breaks Email field’ is closed to new replies.