CLOUDE TOOLS · DEVELOPER TOOLS
Regex Tester
Test JavaScript regular expressions with match positions, groups and replace.
Output
- Matches
- 2
#1 at 0: "alice@example.com" groups: ["alice","example"] #2 at 19: "bob@test.com" groups: ["bob","test"]
HOW IT WORKS
How to use the Regex Tester
Paste your input, adjust the options if needed, then press Run or watch the result update live.
Check the options under the input if the tool offers any.
Review the result below the form.
Copy the result or download it where a download button is shown.
Use “Load example” to see a representative input.
EXAMPLES & USE CASES
See it in action
Input
pattern="(\\w+)@(\\w+)\\.com", flags="g", text="alice@example.com, bob@test.com", replace=""
Output
- Matches
- 2
#1 at 0: "alice@example.com" groups: ["alice","example"] #2 at 19: "bob@test.com" groups: ["bob","test"]
JavaScript (ECMAScript) regex flavour only. Catastrophic patterns can freeze the tab.
DETAILED GUIDE
About the Regex Tester
Enter a pattern, flags and test text to see all matches, indexes and capture groups.
Try a replacement with $1 style groups.
FAQS & RESOURCES
Frequently asked questions
Which flavour?
JavaScript.
Flags?
g i m s u y.
Named groups?
Supported by JS.
Is this tool free?
Yes. Cloude Tools is free to use with no sign-up.
Is my data uploaded to a server?
No. This tool runs entirely in your browser, so what you enter never leaves your device.
Does it work on mobile?
Yes. The tool is designed to be fully usable on a phone.