Skip to main content
CalculazaEveryday calculations, made easier.

FREE ONLINE DEVELOPER TOOLS

Regex Tester

Test a regular expression against sample text.

INPUTS

Enter the details

Add the information requested below to get your result.

Your entries are used to produce the result in this browser.

How to use this tool

What does the Regex Tester do?

Test a regular expression against sample text. Enter the details above to see the result. The notes below explain the calculation method, any published formula, a worked example and important limitations.

When to use this tool

Test a regular expression against sample text. Have Regular expression, Flags (optional) and Test text ready before you start. Try the output in the application where you plan to use it before adding it to a live project.

How to use the Regex Tester

  1. Enter the requested information: Regular expression, Flags (optional), Test text.
  2. Check each value, date, text entry, or unit before continuing.
  3. Tap the main button to see your result.
  4. Review the result and use Copy result when you need to reuse it.
  5. Choose Clear to remove the entries and start again.

Formula and calculation method

The browser applies the regular expression and selected flags to the sample text. A match result is not a security review of the expression.

This tool may use a processing rule, conversion factor, validation step or generation method rather than one standalone equation. The method above describes how its output is produced.

Regex Tester worked example

Example inputs: Regular expression: ; Flags (optional): gi; Test text: Free online tools help people c…. Example output: Match found: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,…

Inputs required

  • Regular expression
  • Flags (optional)
  • Test text

Accuracy and limitations

Use the output as a development aid and validate important code, encoded data, or configuration in your actual application environment. Results are generated by the method built into this tool. Rounding, input format, unit selection, and assumptions can affect the output. For important decisions, verify the result independently with an appropriate trusted source.

Part of Web Development Utilities.

Sources and further reading

These external references support the standards, concepts or browser methods related to this tool. The exact assumptions used by this calculator are described above.

  • MDN Web Docs — MDN Web DocsReference documentation for web platform APIs and browser behaviour used by developer utilities.

Frequently asked questions

What do I need to enter?

Start with Regular expression, Flags (optional), Test text. Follow the field labels and keep units and formats consistent.

How is the result worked out?

The supplied text or data is parsed, formatted, encoded, validated or transformed according to the selected operation. You supply Regular expression, Flags (optional), Test text. Test important output in the application where it will be used.

What should I double-check?

Test the output in the application or environment where you plan to use it.