M
M
Mesuti2020-05-06 16:47:06
JavaScript
Mesuti, 2020-05-06 16:47:06

What regular expression to select invalid emails?

Hey!
There is an array of strings. I'm doing a bulk search/replace.
How to choose those with invalid email? e.g. where there is no @ sign

Sandbox regex101.com
Example data

[email protected]
yandex.ru yandex.ua 
self
 blob: data: yandex.ru yandex.com 
self


Tried unsuccessfully to select
^.*[^@].*$

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-05-06
@Mesuti

https://emailregex.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question