regex.test
4 matchesJavaScript flavour. Named groups and lookaround supported.
pattern
//gi
(?<user>[\w.+-]+)@(?<host>[\w.-]+\.[a-z]{2,})
test text
matches · 4
#1ada@blutils.dev@ 14
- user
- ada
- host
- blutils.dev
#2support+urgent@blutils.dev@ 43
- user
- support+urgent
- host
- blutils.dev
#3jane.doe@example.co.uk@ 72
- user
- jane.doe
- host
- example.co.uk
#4bob_42@io.example@ 112
- user
- bob_42
- host
- io.example
highlighted
Contact us:
ada@blutils.dev (primary)
support+urgent@blutils.dev
jane.doe@example.co.uk
not-an-email
bob_42@io.example
Server: 192.168.1.42 talking to 10.0.0.1
Reply by 2026-05-15.