MoaKit
All tools

Regex Tester

Highlight where a regex matches, inspect groups and named groups, try replacements, and start from common patterns with a cheat sheet.

Input

Common patterns

//g

Result

Matches (0)

hello@moakit.kr, support@example.co.kr, not-an-email@
Copy as code
Regex cheat sheet
.
Any single character (except newline)
\d \w \s
digit · letter/digit/_ · whitespace
\D \W \S
The opposite of the above
[abc] [^abc]
One of the listed characters · any other character
[가-힣]
One Hangul syllable
^ $
Start · end (per line with m)
\b
Word boundary
* + ?
0 or more · 1 or more · optional
{3} {2,5}
Exactly 3 · 2 to 5 times
*? +?
As few as possible (lazy)
(…) (?:…)
Group · non-capturing group
(?<name>…)
Named group
a|b
a or b
(?=…) (?!…)
Followed by … · not followed by …
(?<=…) (?<!…)
Preceded by … · not preceded by …
$1 $<name>
Insert a group in the replacement

Related searches

  • Regex Tester
  • regex tester online
  • regex tester tool
  • regex tester online free
  • regex tester 101