정규식 테스터

Regex Tester

입력한 패턴·텍스트는 브라우저에서만 처리되며 서버로 전송·저장되지 않습니다.Your pattern and text are processed entirely in your browser — never uploaded or stored.

# 인덱스 Index 전체 매치 Full match 그룹 캡처 Groups
정규식 테스터란?

정규식 테스터는 정규표현식 패턴과 플래그를 테스트 문자열에 즉시 적용해 매치 구간을 하이라이트하고, 그룹 캡처까지 표로 보여주는 도구입니다. 유효성 검사 패턴 작성·디버깅, 로그·텍스트 파싱 규칙 검증에 유용합니다.

플래그 설명
  • g: 전역 검색 — 첫 매치가 아닌 모든 매치를 찾습니다.
  • i: 대소문자 구분 없이 매칭합니다.
  • m: ^ $ 가 각 줄의 시작·끝에도 매칭됩니다.
  • s: .(점)이 줄바꿈 문자도 포함해 매칭합니다.
  • u: 유니코드 코드포인트 단위로 처리합니다.
  • y: lastIndex 위치에서만 매칭을 시도합니다(sticky).
참고: g 플래그가 없으면 첫 번째 매치만 표시됩니다.
개인정보·처리 방식

모든 매칭은 사용자의 브라우저 안에서만 이루어집니다. 입력한 패턴과 텍스트는 서버로 전송되거나 저장되지 않습니다.

What is this tool?

The regex tester applies a regular expression pattern and flags to your test string instantly, highlighting matches and listing group captures in a table — handy for writing and debugging validation patterns or parsing rules.

Flags
  • g: global — find all matches, not just the first.
  • i: case-insensitive matching.
  • m: ^ and $ also match the start/end of each line.
  • s: . (dot) also matches newline characters.
  • u: treat the pattern as Unicode code points.
  • y: sticky — only match starting at lastIndex.
Note: without the g flag, only the first match is shown.
Privacy & processing

Everything runs in your browser. Your pattern and text are never uploaded or stored.

정규식(정규표현식)이란 무엇인가요?
정규식은 문자열에서 특정 패턴을 찾거나 검증하기 위한 표기법입니다. 이메일·전화번호 형식 검증, 텍스트 치환, 로그 파싱 등 문자열 처리 전반에 사용되며, 자바스크립트를 비롯한 대부분의 프로그래밍 언어가 지원합니다.
g, i, m 같은 플래그는 무엇인가요?
플래그는 매칭 동작을 바꾸는 옵션입니다. g(global)는 첫 매치가 아닌 모든 매치를 찾고, i(ignoreCase)는 대소문자를 구분하지 않으며, m(multiline)은 ^ $ 가 각 줄의 시작·끝에 매칭되게 합니다. s(dotAll)는 .이 줄바꿈도 포함하고, u(unicode)는 유니코드 코드포인트 단위로 처리합니다.
그룹 캡처는 어떻게 확인하나요?
패턴에 괄호 ( )로 그룹을 지정하면, 매치될 때마다 각 그룹이 캡처한 부분 문자열을 별도로 확인할 수 있습니다. 이 도구는 매치 목록에 전체 매치와 함께 그룹별 캡처 값을 표시합니다.
g 플래그 없이도 여러 매치를 볼 수 있나요?
아니요. g 플래그가 없으면 정규식은 첫 번째 매치만 찾고 멈춥니다. 문자열 전체에서 모든 매치를 찾으려면 반드시 g 플래그를 켜야 합니다.
입력한 패턴·텍스트가 서버로 전송되나요?
아니요. 모든 매칭은 브라우저 안에서만 이루어지며, 입력한 패턴과 텍스트는 서버로 전송되거나 저장되지 않습니다.
What is a regular expression?
A regular expression is a notation for finding or validating patterns in strings — used for email/phone format checks, text replacement, log parsing, and more, supported by nearly every programming language including JavaScript.
What do flags like g, i, m mean?
Flags change matching behavior. g (global) finds all matches instead of just the first; i (ignoreCase) ignores case; m (multiline) makes ^ and $ match each line's start/end; s (dotAll) makes . match newlines too; u (unicode) processes by Unicode code point.
How do I check group captures?
Wrapping part of a pattern in parentheses ( ) creates a group; each match then captures that group's substring separately. This tool lists the full match and each group's captured value in the match table.
Can I see multiple matches without the g flag?
No. Without the g flag, a regex stops after the first match. To find every match in the string you must enable the g flag.
Is my pattern and text sent to a server?
No. All matching happens in your browser; your pattern and text are never uploaded or stored.

안내: 본 도구는 자바스크립트 정규식 엔진을 그대로 사용한 참고용 매칭 도구이며, 모든 처리는 브라우저 안에서만 이루어집니다.

Note: This tool uses the JavaScript regex engine directly for reference matching, and all processing happens in your browser.