Muhawwil

Free text and developer tools that run in your browser.

Regex tester: test regular expressions with live matches

Write a regular expression and test it against your text. Matches are highlighted as you type, each capture group is listed, and you can preview a replacement.

Your text stays on your device. Nothing is uploaded.

How to use it

  1. Type your pattern and flags (for example g, i or m).
  2. Paste the text you want to test.
  3. Read the highlighted matches and groups, or add a replacement.

Questions

Which regex flavour does it use?

The JavaScript engine in your browser. Most patterns also work in other languages, but features such as lookbehind or named groups can differ in older tools.

What do the flags mean?

g finds every match, i ignores upper and lower case, m makes ^ and $ work on each line, s lets the dot match line breaks, and u turns on full Unicode support.

Can I test Arabic text?

Yes. Add the u flag and use a range such as [\u0600-\u06FF]+ to match Arabic words.

About this tool: Regex tester

Use the tester to build a pattern for validating input, finding dates or numbers in a log, or planning a search and replace. For safety it stops after the first 500 matches and does not run on very large texts.

More tools

Password generatorCreate a strong random password in one click.Markdown to HTMLPaste Markdown and get clean HTML to copy into a website, an email or a CMS.Word counterPaste your text to count words and characters as you type.Text cleanerPaste text copied from a PDF, an email or a web page and get a clean version.