P
P
paulvales2015-10-30 13:35:41
Validation
paulvales, 2015-10-30 13:35:41

How to check the field for login or email?

I check using pattern="[a-zA-Z0-9]+" , but the login can also be email, and there is @ and a dot. How to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2015-10-30
@paulvales

Add a doggy and a dot to the regular expression?[[email protected]\.]+

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question