About This Tool
Regex Tester runs a JavaScript regular expression against test text and shows matches, indexes, and capture groups. A global flag is added when missing so repeated matches can be collected; zero-length matches are advanced safely.
What You Can Do
JavaScript RegExp syntax
Regex Tester accepts Pattern, flags, and subject text as its documented input.
Flags input
The current Regex Tester implementation produces Highlighted matches and groups.
Up to 100 displayed matches
A global flag is added when missing so repeated matches can be collected; zero-length matches are advanced safely.
How to Use
- 1
Enter or select the Pattern, flags, and subject text required by Regex Tester
Enter or select the Pattern, flags, and subject text required by Regex Tester.
- 2
Use the javascript regexp syntax, flags input, up to 100 displayed matches controls that apply to this task
Use the javascript regexp syntax, flags input, up to 100 displayed matches controls that apply to this task.
- 3
Run Regex Tester and inspect the displayed Highlighted matches and groups result
Run Regex Tester and inspect the displayed Highlighted matches and groups result.
- 4
Copy or download the Highlighted matches and groups only when the current workspace provides that action
Copy or download the Highlighted matches and groups only when the current workspace provides that action.
Practical Use Cases
Regex Tester workflow
Use Regex Tester when you need to runs a JavaScript regular expression against test text and shows matches, indexes, and capture groups.
Result preparation
Create a reviewable Highlighted matches and groups result while retaining the original Pattern, flags, and subject text.
Privacy and File Processing
Regex Tester keeps its Pattern, flags, and subject text input in browser memory while the operation runs. The workflow creates Highlighted matches and groups for local preview or download and does not send the entered values or selected file bytes to the GXA Toolbox application server.
Supported Inputs and Outputs
Input
- Pattern, flags, and subject text
Output
- Highlighted matches and groups
How It Works
A global flag is added when missing so repeated matches can be collected; zero-length matches are advanced safely.
Quality and Fidelity
A global flag is added when missing so repeated matches can be collected; zero-length matches are advanced safely.
Limitations and Important Notes
- It supports JavaScript RegExp, not every PCRE feature.
- Expensive patterns can block the browser; displayed matches are capped at 100.
Worked Example
Test an email-like pattern against sample contact text and inspect captured matches.
Helpful Tips
- Keep a copy of the original Pattern, flags, and subject text while using Regex Tester.
- Validate the Highlighted matches and groups in its intended destination context.
Frequently Asked Questions
Does Regex Tester execute on the application server?
No. The current Regex Tester operation runs in the browser.
Is the Regex Tester transformation always reversible?
Not necessarily. It supports JavaScript RegExp, not every PCRE feature.
What should I verify after using Regex Tester?
A global flag is added when missing so repeated matches can be collected; zero-length matches are advanced safely.