Regex Tester
Construct a JavaScript RegExp from the entered pattern and test whether it matches the supplied text.
Construct a JavaScript RegExp from the entered pattern and test whether it matches the supplied text.
What this tool does
Construct a JavaScript RegExp from the entered pattern and test whether it matches the supplied text.
Review the output before the next step
The result is a boolean match check. The interface does not provide separate flags or a list of captured matches. The fields available on this page are Regular expression, Test text. Construct a JavaScript RegExp from the entered pattern and test whether it matches the supplied text.
How it works
Construct a JavaScript RegExp from the entered pattern and test whether it matches the supplied text.
Inputs
| Field | Example | Definition |
|---|---|---|
| Regular expression | ^[A-Z][a-z]+$ | Provide regular expression as the source record shown by the example. The tool uses the supplied text and does not retrieve missing facts from an external account. |
| Test text | Martzine | Paste the exact source text for test text. Spaces, quotation marks and non-ASCII characters may be meaningful; retain an unchanged copy. |
Step-by-step guide
Prepare the source
Supply Regular expression, Test text. Keep the original material so the output can be compared with it.
Use Regex Tester
Check Regular expression, Test text, then select Use Regex Tester.
Use the result
Compare the regex tester result with the unchanged source before copying or downloading it.
When to use it
Construct a JavaScript RegExp from the entered pattern and test whether it matches the supplied text. The result is a boolean match check. The interface does not provide separate flags or a list of captured matches.
Example and scope
Example inputs: Regular expression: ^[A-Z][a-z]+$; Test text: Martzine.
The result is a boolean match check. The interface does not provide separate flags or a list of captured matches.
Worked output
Match: Yes
Keep the displayed formula, input units and model scope with the result. Corrections or questions can be sent through the request section on this page.
Content updated: October 11, 2026