Online RegEx Escape

This online regex escape tool will escape all special characters with a backslash so you can put your Text/String/Pattern in a regular expression - To escape a string, this online escaper uses the PHP function preg_quote().

Your Input:

Result, the escaped string:

Use this online regex-escaper for:

  • RegEx escape for C#
  • RegEx escape for PHP
  • RegEx escape for Java
  • RegEx escape for JavaScript
  • RegEx escape for js
  • RegEx escape for JQL
  • RegEx escape for SQL
  • Mask regex for any code, string or pattern

Ads

Which regex-characters need to be escaped?

The regex-characters to escape are:

  • .
  • \
  • +
  • *
  • ?[
  • ^
  • ]
  • $
  • (
  • )
  • {
  • }
  • =
  • !
  • <
  • >
  • |
  • :
  • -

This little and free RegEx Escaper tool for RegEx escaping helps you easily to mask text for regular expressions!