Regex Tester
Type the regular expression, the flags, and the test text — results appear automatically.
Processed locally in your browser.
Ready-made templates
Common patterns, already written. Click "Use in tester" to load the expression and a sample text into the fields above.
Not sure? Turn your internet off and try — it still works.
How it works
Useful for developers validating patterns for validation, data extraction, or text replacement before using them in code. The search always finds every match in the text (not just the first), regardless of whether you include the "g" flag or not. Capture groups — the parenthesized parts of your pattern — appear listed under each match. If the regular expression has a syntax error, the tool shows the error message from your browser's own regex engine, without crashing the page.
Frequently asked questions
Related tools
URL Encoder/Decoder
Encode and decode text for safe use in URLs, with JavaScript's two standard modes.
Development
JWT Decoder
Decode a JWT and see its header, payload, and expiration — without verifying the signature.
Development
HTML, CSS & JavaScript Minifier
Shrink HTML, CSS, and JavaScript by removing whitespace, comments, and unnecessary code.
Development
Brazilian CPF Validator
Validate a Brazilian CPF instantly.
Validators