Your files stay with you.
REGEX→MATCH

Regex Tester

Write a regular expression and see every match highlighted as you type, with capture groups in a table and an optional replace preview.

Your files stay with you. Nothing uploaded. Nothing saved.

Loading the converter…

How to use the Regex Tester tool

  1. Type your pattern without the surrounding slashes.
  2. Tick the flags you need and paste your test text.
  3. Check the highlighted matches and groups, and try a replacement.

Quick reference

PatternMatches
\d, \w, \sA digit, a word character, a whitespace character
.Any character except a line break (or any character with the s flag)
*, +, ?Zero or more, one or more, zero or one
{2,5}Between 2 and 5 times
^, $Start and end of the text (or of each line with the m flag)
(…), (?:…)A capture group, a group that isn’t captured
[a-z], [^0-9]Any character in the set, any character not in the set
\bA word boundary

In the replace box, $1 inserts the first group and $& the whole match. To clean up text without writing a pattern, try Remove Line Breaks or Remove Duplicate Lines.

Frequently asked questions

Which regex flavor is this?

JavaScript (ECMAScript), the same engine your browser and Node.js use. Most syntax matches PCRE, Python and Java, but lookbehind and named groups behave the JavaScript way.

Why does my pattern freeze the page?

Patterns with nested repetition such as (a+)+ can take extremely long on some text. Simplify the pattern or make the repetition more specific.

Are my files uploaded to a server?

No. HushConverts converts everything with code that runs in your browser, so your text and files stay on your device. You can even use most tools offline once the page has loaded.

More encoding & developer