Regex Tester
「Regex Tester」はコード、データと QRに使えるブラウザツールです。入力内容と結果は通常この端末内で処理され、登録は必要ありません。
使い方
使い方
- Enter a JavaScript regular expression and choose its flags.
- Paste the text to test, then select Test expression.
- 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.