Regex Tester
Test and debug regular expressions in real-time. Highlights matches and details capture groups.
Test and debug regular expressions in real-time entirely in your browser. Select match flags (g, i, m, s, u, y) and type your test text to see highlighted matches instantly. Detailed results listing match indexes, lengths, and captured groups are structured in tables below.
How to use
- 1Enter your regular expression (e.g. (\d{4})-(\d{2})-(\d{2}))
- 2Choose match flags like global (g), case-insensitive (i), etc.
- 3Type or paste your target text in the 'Test Text' area
- 4Review matches and capture groups details shown in tables and highlighted on-the-fly
正在载入正则校验校验引擎...
FAQ
- Which regex flags are supported?
- Toggle common flags such as global, ignore case, multiline, and dotAll—matches and highlights update instantly.
- Where are capture groups shown?
- Each match lists the full match plus groups 1, 2, … so you can debug replacements and extraction logic.
- Is this PCRE or JavaScript regex?
- It uses the JavaScript RegExp engine—no PCRE-only features like lookbehind variants on older engines. Mind syntax when porting patterns.
