Feature: Character Property Escapes
Home | Features | Improve this section
A Character Property Escape is an escape sequence used to match a character with a specific character property.
Syntax
NOTE: The following syntax is an example based on some of the supported engines. For specific engine support, see Engines.
\pX— Where X is a single character. Matches a character that has the property X.\p{name}— Where name is a predefined property name. Matches a character that has the property name.\PX— Where X is a single character. Matches a character that does not have the property X.\P{name}— Where name is a predefined property name. Matches a character that does not have the property name.
Engines
| Engine | Supported |
|---|---|
| Perl | ✔ |
| PCRE | ✔ |
| Boost.Regex | ✔ |
| .NET | ✔ |
| Oniguruma | ✔ |
| Hyperscan | ✔ |
| ICU | ✔ |
| Glib/GRegex | ✔ |
| ECMAScript | ✔ |
See Also
- Character Classes
- Posix Character Classes
- Negated Posix Character Classes
- Collating Elements
- Equivalence Classes
- Character Class Escapes
- Line Endings Escape
- Character Class Nested Set
- Character Class Intersection
- Character Class Union
- Character Class Subtraction
- Character Class Symmetric Difference
- Character Class Complement