Regex Tester & Library
Test a regular expression on your text with live match and group highlighting, plus replace, split, extract to CSV, an escape helper and a library of ready patterns (Saudi mobile, IBAN, email…).
The tool
How to use
- Type the pattern (or paste it as /…/gi) and choose flags.
- Paste your text: matches are highlighted and groups are listed in a table.
- Use the tabs to replace, split, extract to CSV, or escape text to match it literally.
- Pick a ready pattern from the Library and adjust it.
Privacy & how it works
Processes your data in the browser and stores nothing.
- Engine: lightweight in-page code, no external libraries.
- Works offline after you open it once.
Frequently asked questions
Which regex flavour is used?
Your browser’s own JavaScript (ECMAScript) engine, with flags g i m s u y, named groups (?<name>…) and lookbehind. PCRE-only syntax such as inline (?i) or \A does not work.
What if the pattern hangs?
Each run happens in a separate worker with a 1.5-second budget. If it takes longer, it is stopped and you are told the pattern is too slow (usually catastrophic backtracking like (a+)+).
Do library patterns validate the number?
No, they check the shape only. For example, the IBAN pattern does not compute the check digits and the ID pattern does not confirm a real ID.
Is my text saved or sent?
No. Everything stays in your browser.