Regex Escaper

Escape any text so it can be safely used inside a regular expression.

Escaped output will appear here...

Frequently Asked Questions

Which characters need escaping in regex?

These characters have special meaning in regex and need escaping with \: . * + ? ^ $ { } [ ] | ( ) \

When would I need to escape a regex?

When searching for literal dots, brackets, or other special chars in user input, e.g. matching a URL like "example.com" requires escaping the dot.

Related Tools