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\Qand preceding the next\Eare treated as literal characters. Example:\Q.+\Ematches.+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 | ❌ |