Skip to content
DevToolKit

정규표현식 치트시트

정규표현식 문법을 카테고리별로 정리한 치트시트와 내장 테스터입니다. 문자 클래스, 수량자, 앵커, 그룹, 전방/후방 탐색의 실용적 예제와 JavaScript, Python 엔진별 차이점을 함께 다룹니다. 로그 파싱, 데이터 검증, 텍스트 처리에 필수적인 참조 도구입니다.

Search Reference

49 of 49 tokens
.
Any character

Matches any single character except newline (unless s flag is set).

\d
Digit

Matches any digit character (0-9). Equivalent to [0-9].

\D
Non-digit

Matches any character that is not a digit. Equivalent to [^0-9].

\w
Word character

Matches any alphanumeric character plus underscore. Equivalent to [a-zA-Z0-9_].

\W
Non-word character

Matches any character that is not a word character. Equivalent to [^a-zA-Z0-9_].

\s
Whitespace

Matches any whitespace character: space, tab, newline, carriage return, form feed.

\S
Non-whitespace

Matches any character that is not whitespace.

[abc]
Character set

Matches any one of the characters inside the brackets.

[^abc]
Negated set

Matches any character NOT inside the brackets.

[a-z]
Character range

Matches any character in the specified range (inclusive).

[a-zA-Z]
Combined range

Matches any uppercase or lowercase letter using combined ranges.

[0-9a-fA-F]
Hex digit range

Matches hexadecimal characters by combining digit and letter ranges.

^
Start of string

Matches the start of a string (or line in multiline mode).

$
End of string

Matches the end of a string (or line in multiline mode).

\b
Word boundary

Matches the position between a word character and a non-word character.

\B
Non-word boundary

Matches any position that is NOT a word boundary.

*
Zero or more

Matches the preceding element zero or more times (greedy).

+
One or more

Matches the preceding element one or more times (greedy).

?
Zero or one

Matches the preceding element zero or one time (optional).

{n}
Exactly n

Matches the preceding element exactly n times.

{n,}
n or more

Matches the preceding element at least n times (greedy).

{n,m}
Between n and m

Matches the preceding element between n and m times (inclusive, greedy).

*?
Lazy zero or more

Matches zero or more times, but as few as possible (lazy/non-greedy).

+?
Lazy one or more

Matches one or more times, but as few as possible (lazy/non-greedy).

??
Lazy zero or one

Matches zero or one time, preferring zero (lazy/non-greedy).

(abc)
Capturing group

Groups multiple tokens together and captures the matched text for back-referencing.

(?:abc)
Non-capturing group

Groups tokens together without capturing. Useful for applying quantifiers to groups.

(?<name>abc)
Named group

Captures the matched text and assigns it a name for easier reference.

\1
Backreference

Matches the same text as previously captured by the nth capturing group.

(a|b)
Group alternation

Captures one alternative from inside a group. Combines grouping with alternation.

|
Alternation (OR)

Matches the expression before or after the pipe. Acts as a boolean OR.

\\
Escaped backslash

Matches a literal backslash character.

\n
Newline

Matches a line feed character (LF, U+000A).

\t
Tab

Matches a horizontal tab character (U+0009).

\r
Carriage return

Matches a carriage return character (CR, U+000D).

\.
Escaped dot

Matches a literal period/dot character.

\^
Escaped caret

Matches a literal caret character.

\$
Escaped dollar

Matches a literal dollar sign character.

\(
Escaped parenthesis

Matches a literal opening parenthesis.

g
Global

Find all matches rather than stopping after the first match.

i
Case-insensitive

Makes the entire pattern case-insensitive.

m
Multiline

Makes ^ and $ match the start/end of each line rather than the whole string.

s
Dotall (single-line)

Makes the dot (.) match newline characters as well.

u
Unicode

Enables full Unicode matching. Required for proper emoji and surrogate pair handling.

y
Sticky

Matches only at the index indicated by the lastIndex property. Does not search forward.

(?=abc)
Positive lookahead

Asserts that what follows the current position matches the pattern, without consuming characters.

(?!abc)
Negative lookahead

Asserts that what follows the current position does NOT match the pattern.

(?<=abc)
Positive lookbehind

Asserts that what precedes the current position matches the pattern, without consuming characters.

(?<!abc)
Negative lookbehind

Asserts that what precedes the current position does NOT match the pattern.

Live Sandbox

//g
Flags
No matches found

Common Patterns

Was this tool helpful?

사용 방법

정규표현식 치트시트를 사용하는 단계별 가이드입니다.

  1. 입력: 정규표현식 치트시트의 입력 영역에 데이터를 입력하거나 파일을 드래그 앤 드롭합니다. 다양한 입력 방식을 지원하여 편리하게 사용할 수 있습니다.
  2. 옵션 설정: 처리 방식, 출력 형식, 품질 등의 옵션을 필요에 따라 조정합니다. 기본 설정만으로도 좋은 결과를 얻을 수 있습니다.
  3. 처리 확인: 입력 데이터가 실시간으로 처리되며, 진행 상태가 표시됩니다. 처리 결과를 즉시 미리보기에서 확인할 수 있습니다.
  4. 결과 검토: 출력 결과의 정확성을 확인합니다. 필요시 옵션을 변경하여 다시 처리할 수 있으며, 원본 데이터는 항상 보존됩니다.
  5. 내보내기: 최종 결과를 클립보드에 복사하거나 파일로 다운로드합니다. 다양한 출력 형식을 선택하여 원하는 형태로 저장합니다.

이 도구에 대해

DevToolkit의 정규표현식 치트시트는 전문적인 기능을 제공하는 무료 온라인 도구입니다. 최신 웹 기술(WebAssembly, Web Worker, Web Crypto API 등)을 활용하여 브라우저에서 직접 실행되며, 데스크톱 애플리케이션 수준의 성능을 제공합니다.

입력 데이터를 실시간으로 처리하여 즉각적인 피드백을 제공합니다. 직관적인 인터페이스와 풍부한 옵션으로 초보자부터 전문가까지 효율적으로 활용할 수 있습니다. 대용량 데이터도 최적화된 알고리즘으로 빠르게 처리합니다.

처리 결과는 클립보드 복사, 파일 다운로드, URL 공유 등 다양한 방식으로 활용할 수 있습니다. 모든 처리는 로컬에서 수행되므로 민감한 데이터도 안전하게 다룰 수 있습니다. 반응형 디자인으로 데스크톱과 모바일 환경 모두에서 최적화되어 있습니다.

이 도구를 사용하는 이유

정규표현식 치트시트를 사용해야 하는 주요 이유입니다.

  • 시간 절약: 수동 작업을 자동화하여 몇 분이면 완료됩니다. 반복적인 작업의 효율을 극대화하여 핵심 업무에 집중할 수 있습니다.
  • 전문적 결과: 산업 표준 알고리즘과 최신 기술을 적용하여 전문가 수준의 정확한 결과를 제공합니다. 신뢰성 높은 출력물을 보장합니다.
  • 접근성: 별도 소프트웨어 설치 없이 웹에서 바로 사용합니다. Windows, macOS, Linux, 모바일 등 모든 운영체제와 디바이스에서 동작합니다.
  • 데이터 보안: 모든 처리가 로컬에서 수행되므로 민감한 데이터가 외부에 노출될 위험이 없습니다. 개인정보와 기밀 데이터를 안전하게 처리합니다.
  • 무제한 사용: 사용 횟수, 파일 크기, 기능에 대한 제한이 없으며, 모든 기능을 완전히 무료로 제공합니다. 회원가입이나 결제 정보 입력이 필요하지 않습니다.
  • 크로스 플랫폼 호환: 어떤 디바이스에서든 동일한 기능과 성능을 경험할 수 있습니다. 반응형 디자인으로 모바일 환경에서도 최적화되어 있습니다.

자주 묻는 질문

정규표현식 치트시트의 내용을 복사할 수 있나요?
네, 각 정규표현식 패턴을 클릭 한 번으로 복사할 수 있습니다. 문자 클래스, 수량자, 앵커, 그룹, 전방/후방 탐색 등 카테고리별로 정리되어 있으며, 각 패턴에 실제 사용 예제와 설명이 함께 제공됩니다.
정규표현식 치트시트은 오프라인에서도 작동하나요?
네, 페이지 로딩 후 인터넷 연결 없이도 모든 정규표현식 참조와 예제를 볼 수 있습니다. 내장 테스터에서 패턴을 직접 실행하여 일치 결과를 확인할 수 있으며, 오프라인에서도 완전히 작동합니다.
정규표현식 치트시트의 컬렉션은 얼마나 방대한가요?
문자 클래스(\d, \w, \s), 수량자(*, +, ?, {n,m}), 앵커(^, $, \b), 그룹과 참조, 전방/후방 탐색 등을 포괄적으로 다룹니다. JavaScript, Python, Java, PCRE 엔진별 문법 차이도 표시합니다.
정규표현식 치트시트의 예제는 실용적인가요?
네, 이메일 검증, URL 파싱, IP 주소 매칭, 날짜 형식 추출 등 실무에서 자주 사용하는 패턴을 포함합니다. 각 정규표현식에 일치하는 문자열과 일치하지 않는 문자열 예제가 함께 제공되어 즉시 활용할 수 있습니다.
정규표현식 치트시트의 정보는 얼마나 최신인가요?
JavaScript, Python, PCRE, Go, Java, .NET 엔진의 최신 사양을 반영합니다. 유니코드 카테고리(\p{L}), Named Capture Group, Lookbehind 등 최신 정규표현식 기능도 포함합니다.