Regex Special Character Escape

Escape special regex metacharacters (. * + ? ^ $ { } [ ] | ( ) \) so they match literally in regular expressions.

How to Use the Regex Escape Tool

1

Paste text.

2

See regex-escaped version.

3

Copy into your regex.

Frequently Asked Questions

What characters are escaped?
All regex metacharacters: . * + ? ^ $ { } [ ] | ( ) \ are prefixed with a backslash.

Related Tools