Regex Tester
Try a JavaScript regular expression against sample text. See matches and groups instantly.
JS cheatsheet: \d \w \s \b * + ? (?: ) (?= ) [a-z] {'{'}n,m{'}'}
How to test a regex
- Type a pattern and optional flags.
- Paste the text to test.
- Read matches and groups.
Frequently asked questions
Which engine?
Your browser’s JavaScript RegExp, not PCRE or Python.
Catastrophic backtracking?
A huge input plus a nasty pattern can freeze the tab. Keep tests small.
Replacement?
A replace field shows the substituted string.
Private?
Yes.
Cheatsheet?
A short JS-regex reminder is on the page.
More free tools from Tech Bichar
Diff CheckerPaste two versions of a text or code. See what was added or removed.JSON Formatter & ValidatorPaste JSON to beautify, minify or validate it. Errors show a line number. Nothing is sent to a server.Code FormatterBeautify SQL, CSS or HTML with a small indenting formatter. No Prettier download.All toolsBrowse every free utility on Tech Bichar.