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.

자주 쓰는 패턴

//g

매칭 결과 (0개)

hello@moakit.kr, support@example.co.kr, not-an-email@
코드로 복사
정규식 문법 요약
.
아무 글자 하나 (줄바꿈 빼고)
\d \w \s
숫자 · 영문·숫자·_ · 공백
\D \W \S
위의 반대
[abc] [^abc]
괄호 안 글자 중 하나 · 그 밖의 글자
[가-힣]
한글 한 글자
^ $
시작 · 끝 (m 이면 줄마다)
\b
낱말 경계
* + ?
0번 이상 · 1번 이상 · 있거나 없거나
{3} {2,5}
정확히 3번 · 2~5번
*? +?
가능한 한 적게
(…) (?:…)
그룹 · 기억하지 않는 그룹
(?<name>…)
이름 붙인 그룹
a|b
a 또는 b
(?=…) (?!…)
뒤에 … 이(가) 오는 · 오지 않는
(?<=…) (?<!…)
앞에 … 이(가) 있는 · 없는
$1 $<name>
바꾸기에서 그룹 넣기

What is Regex Tester?

Lets you build a regular expression while instantly checking whether it matches the parts you want.

How to use

  1. Enter a regular expression.
  2. Paste the text to test.
  3. Check that the matching parts are highlighted.

Tips

  • Results change a lot depending on flags such as g (global) and i (ignore case).
  • If it matches too broadly, use a specific character range instead of .*.