How to use Regex Tester
- Enter your pattern and flags.
- Paste test text.
- Review the highlights and the matches table.
Supported features and limitations
Uses your browser’s JavaScript (ECMAScript) regex engine; other languages’ syntax such as PCRE or Python may differ. Matches are capped at 2,000. Catastrophic patterns on long text can slow the page.
Privacy
Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.
Frequently asked questions
Which regex flavour is this?
JavaScript (ECMAScript).
What do flags mean?
g = all matches, i = ignore case, m = multiline, s = dot matches newlines, u = Unicode.
Related tools
- Find and Replace Text - Find and replace text in bulk with options for case, whole words and regular expressions, and see how many replacements were made.
- URL Parser - Break a URL into protocol, host, port, path, query parameters and fragment.
- Text Diff Checker - Compare two texts line by line and highlight what was added or removed.
- JSON Formatter & Validator - Format, minify and validate JSON with clear errors.
- URL Encoder / Decoder - Encode or decode URLs and query strings.
- Color Converter - Convert between HEX, RGB and HSL colours.