Regex Escape
Escape regular-expression metacharacters (. * + ? ^ $ ( ) [ ] { } | \ /) so text matches literally.
Runs in your browserText → Regex pattern
Loading tool…
Example
price: $5.00 (approx.)
price: \$5\.00 \(approx\.\)
How to use the Regex Escape
- Paste or type your Text into the input area, or open a file from your device.
- Adjust the options above the editor if the tool offers any.
- Review the Regex pattern result, then copy it or download it as a file.
Privacy and limitations
- Your data is processed on your device and is not uploaded to any server.
Related converters
Regex TesterTest JavaScript regular expressions live with highlighted matches, a capture group table and a replace preview.Find and ReplaceFind and replace text, with optional regular expressions, capture groups, case sensitivity and whole words.C# String UnescapeDecode C# string escapes (\n, \x41, \u00e9, \U0001F600) or verbatim @"…" strings back to plain text.C# String EscapeEscape text for C# regular ("…") or verbatim (@"…") string literals, including \0, \a, \v and \uXXXX.Java String UnescapeDecode Java string escapes (\n, \t, \s, \uXXXX, octal) into plain text, flagging escapes Java would reject.Java String EscapeEscape text for a Java string literal: backslashes, quotes, \n, \t and control characters, optionally as \uXXXX ASCII.SQL String UnescapeTurn an SQL string literal back into plain text: strip quotes and collapse '' (or MySQL backslash escapes).SQL String EscapeEscape text for an SQL string literal by doubling single quotes, or with MySQL backslash escapes.