Feature: Quoted Characters
Home | Features | Improve this section
Quoted Characters are a sequence of characters treated as literal characters rather than RegExp characters.
Syntax
NOTE: The following syntax is an example based on some of the supported engines. For specific engine support, see Engines.
\Q…\E
— All characters following\Q
and preceding the next\E
are treated as literal characters. Example:\Q.+\E
matches.+
but notaa
.\Q…
— If there is no trailing\E
, all characters until the end of the pattern are treated as literal characters.
Engines
Engine | Supported |
---|---|
Perl | ✔ |
PCRE | ✔ |
Boost.Regex | ✔ |
.NET | ❌ |
Oniguruma | ❌ |
Hyperscan | ❌ |
ICU | ✔ |
Glib/GRegex | ✔ |
ECMAScript | ❌ |