Regex Escape
Add a backslash before . * + ? ( ) [ ] so you can match a string literally in a regex.
Loading tool...
Runs in your browser. Nothing is sent anywhere.
When to use it
Use this when you need to match a literal string full of dots, parentheses and plus signs, like a price with a discount note, in a code editor or source code where regex keeps treating them as special characters.
The tool also escapes /, which suits pasting into a JavaScript /.../ literal. Hyphens are left alone because they have no special meaning outside brackets, so the result also works with the u flag on.
How to use
- Paste the string you want to find.
- The escaped expression appears right away.
- Click Copy or Download file.
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.
Related tools
More Developer tools
Split Text with RegexSplit text into parts using any separator written as a regex, and output one part per line or a JSON array.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.URL ParserBreak a URL into protocol, domain, port, path, parameters and hash, and decode accented text.JWT GeneratorSign a JSON Web Token with HS256, HS384 or HS512 from your own payload to test an API during development.URL CleanerRemove fbclid, gclid, utm_ and other tracking parameters from links before sharing, for many links at once.
See all developer tools