Regex Tester
Test JavaScript regular expressions live — see matches highlighted in your text and captured groups in a list.
More options
Common Pattern Library
Click any pattern to load it into the tester:
Quick Regex Cheatsheet
. Any character\d Digit [0-9]\w Word char [a-zA-Z0-9_]\s Whitespace\D Non-digit\W Non-word char^ Line start$ Line end\b Word boundary\B Non-boundary* 0 or more (greedy)+ 1 or more (greedy)? 0 or 1 (optional)*? 0 or more (lazy){n} Exactly n times{n,m} n to m times(...) Capturing group(?:...) Non-capturing group(?=...) Positive lookahead(?!...) Negative lookaheadHow to use Regex Tester
- Type your regex pattern.
- Pick flags.
- Paste test text — matches highlight live.
What is Regex Tester?
Build and debug regular expressions quickly: type a pattern, toggle flags (g, i, m, s, u), and see matches highlighted in your test text. Captured groups appear next to each match for easy verification.
FAQ
- Which regex flavor?
- JavaScript regex (ECMAScript). Lookaheads, lookbehinds, character classes, capture groups, named groups all supported.
- What is the safety limit?
- Caps at 100,000 matches per run to prevent runaway patterns.
Related tools
People also use
- BBCode to HTML🔄 Transformation
Free online BBCode to HTML converter. Convert BBCode tags like [b], [i], [url], [img], [quote], [list], [color], and more to clean HTML markup.
- Border Radius Generator🗄️ Developer Tools
Visually craft CSS border-radius — independent corners, px/%/em units, and organic blob shapes. Live preview and copy-paste CSS. Runs in your browser.
- Box Shadow Generator🗄️ Developer Tools
Box Shadow Generator — Build CSS box-shadow visually — tune offset, blur, spread, color, opacity, and inset with live preview.