개발자 도구
정규식 치트시트
실시간 테스터가 포함된 인터랙티브 정규식 참조 — 앵커, 문자 클래스, 수량자, 그룹, 룩어헤드, 플래그 및 일반적인 패턴
1만 명 이상의 개발자가 사용
Live Regex Tester
//
Hello World 123
1 match"123" @12
Anchors
Start of string (or line with m flag)
e.g. ^Hello
End of string (or line with m flag)
e.g. world$
Word boundary
e.g. \bword\b
Not a word boundary
e.g. \Bend
Start of string (no multiline)
e.g. \AHello
End of string (no multiline)
e.g. world\Z
Character Classes
Any character except newline
e.g. a.c
Word character [a-zA-Z0-9_]
e.g. \w+
Non-word character
e.g. \W+
Digit [0-9]
e.g. \d{3}
Non-digit
e.g. \D+
Whitespace (space, tab, newline)
e.g. \s+
Non-whitespace
e.g. \S+
Any of a, b, or c
e.g. [aeiou]
Not a, b, or c
e.g. [^0-9]
Character in range a to z
e.g. [a-zA-Z]
Chinese characters (Unicode range)
e.g. [\u4e00-\u9fff]+
Quantifiers
0 or more of a (greedy)
e.g. ab*c
1 or more of a (greedy)
e.g. ab+c
0 or 1 of a (optional)
e.g. colou?r
Exactly 3 of a
e.g. \d{4}
3 or more of a
e.g. \w{3,}
Between 3 and 6 of a
e.g. \d{2,4}
0 or more of a (lazy/non-greedy)
e.g. <.*?>
1 or more of a (lazy)
e.g. \d+?
Groups & Capturing
Capture group
e.g. (\d+)-(\w+)
Non-capturing group
e.g. (?:https?)
Named capture group
e.g. (?<year>\d{4})
Backreference to group 1
e.g. (\w+)\s\1
Positive lookahead
e.g. \d(?=px)
Negative lookahead
e.g. \d(?!em)
Positive lookbehind
e.g. (?<=\$)\d+
Negative lookbehind
e.g. (?<!\$)\d+
a or b (alternation)
e.g. cat|dog
Escape Characters
Newline
e.g. line1\nline2
Tab
e.g. col1\tcol2
Carriage return
e.g. \r\n
Literal dot
e.g. \d+\.\d+
Literal asterisk
e.g. \*important\*
Literal parenthesis
e.g. func\(\)
Flags
Global + case-insensitive
e.g. /hello/gi
Multiline (^ and $ match line start/end)
e.g. /^\w+/m
Dotall (. matches newline too)
e.g. /a.b/s
Unicode (enable Unicode support)
e.g. /\p{L}/u
Unicode sets (advanced, ES2024)
e.g. /[\p{Emoji}]/v
Common Patterns
Email address
e.g. user@example.com
HTTP/HTTPS URL
e.g. https://example.com
Phone number (E.164)
e.g. +12345678901
Date (YYYY-MM-DD)
e.g. 2024-04-01
Hex color (without #)
e.g. ff5733
Password: min 8 chars, 1 uppercase, 1 digit
e.g. Password1
IPv4 address (basic)
e.g. 192.168.1.1
URL slug
e.g. my-blog-post
HTML comment
e.g. <!-- comment -->
CSS hex color with #
e.g. #ff5733
IPv4 address (strict-ish)
e.g. 10.0.0.1
Username (3-16 chars)
e.g. user_name-1
계속 탐색
추천 개발자 도구 도구…
JSON 포맷터
구문 강조 및 오류 감지로 JSON 형식화, 유효성 검사 및 압축
지금 써 보기
Base64 인코더/디코더
텍스트 또는 파일을 Base64로 인코딩하고 Base64 문자열을 읽기 가능한 텍스트로 디코딩
지금 써 보기
URL 인코더/디코더
URL 구성 요소 및 쿼리 문자열 매개변수 인코딩 및 디코딩
지금 써 보기
UUID 생성기
무작위 UUID(v1, v4) 생성 또는 여러 UUID 일괄 생성
지금 써 보기
해시 생성기
텍스트 또는 파일에서 MD5, SHA-1, SHA-256, SHA-512 해시 생성
지금 써 보기
정규식 테스터
실시간 일치 강조 표시로 정규식 테스트
지금 써 보기
JWT 디코더
JSON Web Token 디코딩 및 검사 — 헤더, 페이로드 및 서명 확인
지금 써 보기
HTML 포맷터
적절한 들여쓰기와 구문 강조로 HTML 코드 형식화 및 정리
지금 써 보기