코드, 데이터 및 QR 도구

Regex Tester

「Regex Tester」는 코드, 데이터 및 QR 작업을 위한 브라우저 도구입니다. 입력과 결과는 일반적으로 이 기기에서 처리되며 가입이 필요하지 않습니다.

브라우저에서 로컬 처리가입 불필요개인정보 안내 ↗

Enter the pattern only, without surrounding slashes. JavaScript RegExp syntax is used.

Flags

Maximum 200,000 UTF-16 characters. Matching happens locally.

사용 방법

사용 방법

  1. Enter a JavaScript regular expression and choose its flags.
  2. Paste the text to test, then select Test expression.
  3. Review each match, its capture groups, and the source position or fix any reported error.

JavaScript RegExp behavior

This tester uses the browser’s built-in RegExp engine, so syntax, flags, Unicode behavior, lookarounds, backreferences, and named groups follow the JavaScript version supported by your browser.

Match details you can inspect

Each result shows the complete match, zero-based source index, end position, and capture groups. Named captures are labeled when the browser provides them. Global and sticky expressions are evaluated repeatedly; other expressions show their first match.

Private and local

The expression and test text stay in this browser. Inputs are limited to 200,000 UTF-16 characters each, and the page does not send them to a server or fetch remote pattern libraries.

자주 묻는 질문

더 알아보기

Which regex flavor does this use?

It uses the browser JavaScript RegExp implementation, rather than PCRE, Python, Ruby, or another server-side flavor. Check the target JavaScript runtime when portability matters.

Why do I only see one match?

Without the g or y flag, JavaScript RegExp returns the first match. Enable g to find all non-overlapping matches, or y for repeated matches at the current position.

Are my expressions uploaded?

No. Matching and error reporting happen locally in your browser.

What does an empty capture group mean?

A group can participate with an empty string, or be unmatched and shown as an em dash. The tester preserves that distinction in the result.