-3

I don't know anything about regex.

How do I create an email validation that allows such entries?

Allow

a1b2c3@a1b2c3 a@a 1@1 a1@a@a2e !s@s$ds 

Dont Allow

@ @@@ !@# 

Basically allow characters that has @ in the middle

2

1 Answer 1

0

If you aren't fluent in regex you can split the string at "@" and expect two elements.

If you want to use regex, the first result on google was: https://emailregex.com

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.