Skip to content
HandyBrowserTools

Regex Tester

Enter a pattern and test text below. Matches are highlighted live as you type, with capture groups listed for each match. Uses your browser's native JavaScript regex engine.

Private by default: processing stays on your device

Matches

Example: extract years

Input

Pattern: \b(19|20)\d{2}\b
Text: Born 1991, graduated 2013.

Output

2 matches: 1991, 2013
Share this page X LinkedIn Reddit

These buttons share the page link, not your input.

Frequently asked questions

Which regex flavor does this use?

JavaScript (ECMAScript), the same engine your browser runs. Most patterns behave like PCRE, but lookbehind and some Unicode features vary by flavor.

What do the flags mean?

g finds all matches instead of the first, i ignores case, m makes ^ and $ match line starts/ends, s lets . match newlines, u enables full Unicode mode.

Why does my pattern show an error?

The pattern isn't valid JavaScript regex syntax. The exact engine error is shown so you can fix it. Remember to escape special characters like . ( ) [ ] with a backslash.

Text Diff Checker

Compare two texts online and see added and removed lines highlighted. Free diff checker that runs 100% in your browser.

Case Converter

Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case and more, free, instant and 100% in your browser.

Slug Generator

Convert any title into a clean, URL-friendly slug. Handles accents, symbols and custom separators, free and processed 100% in your browser.