포매터 및 코드
정규식 테스터
실시간 하이라이팅 기능이 있는 무료 정규식 테스터. JavaScript 정규식을 작성하고, 입력하는 동안 일치 항목과 캡처 그룹이 업데이트되는 것을 확인합니다. 브라우저가 사용하는 것과 동일한 엔진을 사용합니다.
- #1 · index 6ada@example.com
- $1ada
- $2example.com
- #2 · index 25grace.hopper@navy.mil
- $1grace.hopper
- $2navy.mil
Toggle on to write a replacement string and see the result. Use $1, $2, … to reference capture groups.
\dany digit (0-9)\wword character (letters, digits, _)\sany whitespace.any single character*zero or more of the preceding+one or more?optional (0 or 1){n,m}between n and m of the preceding^start of string (or line with m)$end of string (or line with m)[abc]any of a, b, or c[^a-z]anything BUT lowercase a-z(…)capture group(?:…)non-capturing group|alternation (or)
편집자 노트
Understanding · Patterns, not literals.
이 심층 챕터는 현재 영어로만 제공됩니다. 위의 변환 도구는 귀하의 언어로 작동하지만, 긴 설명 글은 아직 번역되지 않았습니다.
자주 묻는 질문
Quick answers.
›Which regex flavor is used?
JavaScript regex (ECMAScript), evaluated by the same engine your browser uses. Matches PCRE for most common patterns but differs on lookbehinds and named groups.
›What flags can I use?
g (global), i (case-insensitive), m (multiline), s (dotAll), u (unicode), y (sticky).
›Are matches highlighted live?
Yes — every keystroke re-runs the regex and updates highlights immediately.
›Are capture groups shown?
Yes. Numbered and named capture groups are listed for each match.
›Is my input sent anywhere?
No — everything runs in your browser. Useful when testing regex against sensitive text.
›Is the regex tester free?
Yes — fully free, no signup.
사람들이 다음도 검색합니다.
관련 자료 읽기
블로그에서.(2)
관련 도구