Regex Tester
Test JavaScript regular expressions with live highlighting.
Runs in your browserFree, no sign-upOpens .txt
Loading tool…
How to use it
- Type a pattern and choose flags.
- Paste test text or open a file.
- Read matches and groups, or try a replacement.
About this tool
Write a pattern, set flags and see every match highlighted in your test text, with capture groups listed for each match. Try a replacement string with $1 references before you put it in code.
Your input is processed on your device. Nothing is sent to a server or stored.
Questions
Which regex flavour is this?
JavaScript (ECMAScript), the same engine Node.js and browsers use.
Text
All textMore tools like this
TextWord & Character CounterCount words, characters, sentences and reading time.Opens filesOpen →TextCase ConvertercamelCase, snake_case, kebab-case, Title Case and more.Opens filesOpen →TextDiff CheckerCompare two texts or files and highlight the changes.Opens filesOpen →TextSort & Dedupe LinesSort, remove duplicates, trim, reverse and shuffle lines.Opens filesOpen →TextURL Slug GeneratorTurn titles into clean, SEO-friendly URL slugs.Opens filesOpen →TextHTML to Markdown ConverterConvert HTML into clean Markdown.Opens filesOpen →TextMarkdown to HTML ConverterConvert Markdown into HTML you can paste anywhere.Opens filesOpen →TextStrip HTML TagsRemove HTML tags and get plain, readable text.Opens filesOpen →