Regex Tester
Type a regex and instantly see highlighted matches and capture groups, and test replacements with $1, $2.
Loading tool...
Runs in your browser. Nothing is sent anywhere.
When to use it
Write and test regular expressions on real data, see matches and capture groups highlighted, and check them before you put them into code or a find and replace tool.
How to use
- Type the expression and choose the flags.
- Paste the text to test and see matches highlighted.
- Turn on replace to try a replacement string.
Frequently asked questions
Is the data I paste sent to a server?
No. The tool runs in JavaScript right in your browser, and Takikit has no server that receives data. You can turn off your internet after opening the page and the tool will still work.
Which regex flavor does it use?
The JavaScript syntax of your browser. It is mostly the same as regex in PHP, Python and Java, with a few small differences such as named groups and lookbehind.
Related tools
Regex LibraryReady-made regex patterns for Vietnamese phone numbers, ID cards, tax IDs, emails, license plates, dates and more, which you can test right away.Regex ExtractorPull all emails, phone numbers, links and more out of a long text, with optional duplicate removal.Regex EscapeAdd a backslash before . * + ? ( ) [ ] so you can match a string literally in a regex.
More Developer tools
JWT GeneratorSign a JSON Web Token with HS256, HS384 or HS512 from your own payload to test an API during development.JWT DecoderView the header, payload and expiry of a JSON Web Token, and check an HS256 signature with your own key.Split Text with RegexSplit text into parts using any separator written as a regex, and output one part per line or a JSON array.UUID DecoderSee which version and variant a UUID is, and when it was created (for v1, v6 and v7).Random String GeneratorGenerate secure random strings for API keys, invite codes or coupon codes, with an optional prefix and character set.URL ParserBreak a URL into protocol, domain, port, path, parameters and hash, and decode accented text.
See all developer tools