Developer Toolkit
Regex tester
Write a pattern, see matches highlighted instantly, and lean on the cheatsheet.
Pattern
//gi
Flags
Test string
Highlighted matches (2)
Reach out at hello@prograstic.com or support@example.co.in for help.
Match details
hello@prograstic.comat index 13
support@example.coat index 37
Cheatsheet
.Any character except newline\dDigit (0-9)\DNon-digit\wWord character (a-z, A-Z, 0-9, _)\sWhitespace^Start of string / line$End of string / line*0 or more+1 or more?0 or 1 (optional){n,m}Between n and m repetitions[abc]Any of a, b, or c[^abc]Anything except a, b, c(abc)Capture group(?:abc)Non-capturing groupa|ba or b(?=abc)Positive lookahead(?!abc)Negative lookahead
