🧪

Regex Tester

Software · 3 inputs · Free

🧪

Regex Tester

3 inputs

Parameters

What is this tool?

Regex Tester helps developers with encoding, encryption and text processing. Runs a regular expression (regex) against test text, with support for the g, i, m, s, u and y flags; matches are highlighted.

📘 Common mistakes · Worked example
PatternFlagsTest text

Runs a regular expression (regex) against test text, with support for the g, i, m, s, u and y flags; matches are highlighted.

The result is not exact or binding and is for information only; it is not an official document and cannot be used in official procedures. Confirm it with the competent authority or a professional before acting; no liability is accepted for losses arising from its use.

Last reviewed: · Methodology and sources

How is it calculated?

Runs a regular expression (regex) against test text, with support for the g, i, m, s, u and y flags; matches are highlighted.

Inputs

ValueUnitExample
Pattern—\d+
Flags—g
Test text—Order 12, shipment 345

What is this tool?

Regex Tester helps developers with encoding, encryption and text processing. Runs a regular expression (regex) against test text, with support for the g, i, m, s, u and y flags; matches are highlighted.

Common mistakes

  • Writing the pattern with slashes, as in /\d+/g; the tool treats the slashes as part of the pattern.
  • Using \w or [a-z] for accented text; letters such as é, ü or ñ do not match.
  • Forgetting the g flag when you want every match; only the first one is shown.
  • Not escaping the dot; "." matches any character, a literal dot needs \.
  • Trying to validate email addresses or URLs perfectly with one regex; overly complex patterns end up both wrong and slow.

📘 How to Test a Regular Expression: Flags, Groups and Positions →

Sources

Key terms

PatternFlagsTest text

Frequently Asked Questions

+Regex Tester — how is it calculated?

Runs a regular expression (regex) against test text, with support for the g, i, m, s, u and y flags; matches are highlighted.

+Which values are required?

Pattern, Flags, Test text.

+Is my data stored?

No. All calculations run in your browser; the values you enter are never sent to or stored on a server. If you press “Save”, the calculation stays only in your own browser and you can delete it at any time.

+Is it free?

Yes, all tools are free and require no sign-up.

Similar tools

Popular Tools

🧮

Free Calculators in One Place

Tax, finance, health, math and more — 500+ tools, all in one place.

Choose your cookie preference to continue

Records the site needs to work (theme, language, favourites) stay in your browser.

This site is free and funded by ads.

With your consent, Google Analytics cookies measure visits and Google AdSense cookies are used to show ads; the data is processed on Google servers abroad.

If you reject, the site works just the same.

Cookie Policy · KVKK notice