Free regex tester
Test a regular expression against your text and see every match and capture group.
Runs in your browser. Nothing you type is sent to us · free, no sign-up
Regex tester
Loading the tool
Prefer to call?
071 577 0488, any hour, in Sinhala or English.
How to read the result
Type a regular expression and some text and the tester highlights every match and lists the captured groups as you type. Add a replacement to preview a search-and-replace. It uses JavaScript's regex engine, which behaves like PCRE for most everyday patterns.
Questions people ask
Why does my pattern match more than I expect?
Quantifiers like .* are greedy. Add ? (.*?) to match as little as possible, or use a narrower class such as [^,]*.
Is my text sent anywhere?
No. Matching happens in your browser.
Is this tool free?
Yes, free with no sign-up, and it runs entirely in your browser.
14More Utilities tools
- Password generatorStrong random passwordsOpen →
- Base64 encoder and decoderEncode and decodeOpen →
- URL encoder and decoderPercent-encode textOpen →
- HTML entities encoderEscape and unescapeOpen →
- Hash generatorMD5, SHA-1, SHA-256 and moreOpen →
- htpasswd generatorBasic-auth linesOpen →
- QR code generatorSVG QR codesOpen →
- UUID generatorRandom v4 UUIDsOpen →
- JWT decoderHeader, payload and expiryOpen →
- JWT generatorSign an HS256 tokenOpen →
- Text diff checkerCompare two textsOpen →
- Unix timestamp converterUnix time to datesOpen →
- Password breach checkerSeen in a data breach?Open →
- nginx and Apache config generatorGenerate a virtual hostOpen →