정규식 테스터
실시간 매치 하이라이트와 캡처 그룹 세부 정보로 정규식을 테스트합니다. 안전을 위한 입력 제한이 있습니다.
Highlighted preview (3)
Hello, Yunedia Tools 2026!
| # | Index | Match | Groups |
|---|---|---|---|
| 1 | 0 | Hello | — |
| 2 | 7 | Yunedia | — |
| 3 | 15 | Tools | — |
사용 방법
Set a pattern and flags (g / i / m / s / u / y), type the test text, and the results update as you type. Matches are highlighted in the preview, and the table lists each match's index, text and capture groups (including named groups). Without the g flag, only the first match is reported, matching JavaScript semantics.
참고 사항
Evaluation uses your browser's JavaScript regex engine, locally. To limit freezes from catastrophic backtracking, the pattern is capped at 500 characters, the test text at 20,000 characters and matches at 1,000. Even within those caps, patterns with nested quantifiers can be slow — simplify the pattern if the page stalls.
자주 묻는 질문
Is this the same regex flavor as other languages?
This is JavaScript's flavor. The basics are shared, but details differ from PCRE or Python: \d matches ASCII digits only, and named groups use the (?<name>...) syntax.
What happens with patterns that match empty strings?
The search position advances by one character after an empty match to avoid an infinite loop, and empty matches appear as zero-width markers in the preview.