Paste any text, such as a price with a dot, a file path, a URL or a phrase with brackets, and get a version you can drop into a regular expression where it will match exactly that text. Choose the style for your language, or put one term per line to get a single pattern that matches any of them.
Builds (?:term1|term2|...) to match any of them
45 characters
Escaping runs in your browser. What you type never leaves this device.
Escapes every regex special character: . * + ? ^ $ { } ( ) [ ] | \ and /
Styles for JavaScript (also fine for Java, C# and Go), PHP preg_quote, Python re.escape and grep -E / awk
A mode for text that goes inside [ ] brackets, where only ] \ ^ and - need escaping
One term per line becomes (?:term1|term2|...), longest first so longer phrases win
JavaScript output works with and without the u (Unicode) flag
A pattern for ₹1,299.00 or file(1).pdf breaks because . ( and ) mean something to the regex engine. Escaping turns them back into plain characters.
Paste city names, product codes or blocked words one per line and get one pattern that matches any of them, for a search, a filter or a validation rule.
Check what your language's escape function would produce, or copy the escaped text straight into a pattern in a config file or spreadsheet formula.
Outside brackets, the characters with special meaning in almost every flavour are . * + ? ^ $ { } ( ) [ ] | and the backslash. The JavaScript style also escapes / so the result can sit inside a /pattern/ literal. A hyphen is only special inside [ ], so it is left alone outside brackets.
Paste the escaped pattern into the Regex Tester with some sample text to confirm it matches what you expect, or use the Regex Match Extractor to pull every match out of a document.
Regex Tester
Test regular expressions
Regex Match Extractor
Pull every regex match or capture group into a list, CSV or JSON
Regex Splitter
Split text on any regular expression, one piece per line
Find and Replace
Replace words in text with plain or regex search, match case, whole words and a live match count
Regex Patterns
Tested regexes for PAN, GSTIN, IFSC, mobile numbers, email, dates and more
JSON Formatter
Format and validate JSON
JSON Sort Keys
Alphabetize JSON keys at every level
JSON Flatten
Nested JSON to dot-path keys
JSON Unflatten
Dot-path keys back to nested JSON
Built by Edesy
Edesy builds AI products for Indian businesses. Start self-serve, no demo call needed.
AI agents that answer and make phone calls 24/7. Handle appointments, inquiries and support in Indian and global languages.
₹50 free credit. No demo call needed.