i
Hate
Regex
Library
Cheatsheet
Community
Open playground
match an email
Regex title
View-only original
Remix in playground
JavaScript
Expression
/
Regular expression
[^@ \t\r\n]
+
@
[^@ \t\r\n]
+
\.
[^@ \t\r\n]
+
[^@ \t\r\n]+@[^@ \t\r\n]+\.[^@ \t\r\n]+
/
gm
g
global
i
ignore case
m
multiline
s
dot all
u
unicode
y
sticky
Test bench
Sample text
6 matches
[email protected]
[email protected]
[email protected]
[email protected]
hello@ @test email@gmail theproblem@
[email protected]
mail
[email protected]
geon@ihateregex.io test@gmail.com mail@test.org mail@testing.com hello@ @test email@gmail theproblem@test@gmail.com mail with@space.com
Structure
Railroad diagram
SVG
PNG
Embed
Live