Regex Tester (JavaScript)
Test a JavaScript regular expression against your own text and see the results as you type. Matches are highlighted in the test string, the match count is shown, and every match is listed with its index and capture groups. Toggle the g, i, m, s and u flags to change how the pattern behaves. The tool uses your browser's own RegExp engine, so results match JavaScript code, and your text is never uploaded.
/
/
Highlighted matches
Matches and groups
Group :
How to use the Regex Tester
- Enter a pattern in the Regular expression box, without the surrounding slashes.
- Tick the flags you need: g (global), i (ignore case), m (multiline), s (dotAll) or u (Unicode).
- Paste the text to search into the Test string box.
- Review the highlighted matches, then the Matches and groups list for each match's index and captured groups.
Frequently asked questions
- Your browser's JavaScript engine, exactly like new RegExp() in JS. Patterns that rely on PCRE- or Python-only features may behave differently.
- Check whether you need the g flag to find all matches, whether special characters are escaped (\. \+ \? for a literal dot, plus or question mark), and whether you need the i flag to ignore case.
- Yes. Each match lists its capture groups in order. Named groups appear in their positional slot.
- No. Matching runs entirely in your browser.
Other tools
{ }
JSON Formatter & Validator
Paste JSON to pretty-print, minify or validate it, right in your browser.
64
Base64 Encoder / Decoder
Convert text or images to and from Base64, with URL-safe support.
%
URL Encoder / Decoder
Percent-encode or decode URLs and break query strings into parameters.
⇄
CSV ↔ JSON Converter
Convert CSV to JSON and back, with header rows, quotes and custom delimiters.
🕑
Unix Timestamp Converter
Convert Unix timestamps to dates and back, in seconds or milliseconds.
🎨
Color Converter & Contrast Checker
Convert HEX, RGB and HSL, and check WCAG contrast with pass/fail labels.
🔑
UUID & Password Generator
Generate UUID v4s and strong passwords in bulk with crypto-grade randomness.
#️⃣
Hash Generator (MD5 / SHA)
Compute MD5, SHA-1, SHA-256 and SHA-512 hashes instantly, without uploading.
▦
QR Code Generator
Turn a URL or text into a QR code, adjust size and error correction, download PNG.
#
LLM Token Counter
See characters, words, lines and an approximate token count for your text.
Aa
Text Case Converter
Switch case or convert to camelCase, snake_case, kebab-case and more.
🪪
JWT Decoder
Decode a JWT header and payload and see when it was issued and expires.
M↓
Markdown Preview
Write Markdown and see a live preview, then copy the HTML.
±
Text Diff Checker
Compare two texts and highlight additions and deletions by line or word.
Looking for more AI and software tools? Browse the yunodb.com tools directory ↗.