Identifies a set containing only one character, usually because that character is difficult or impossible to write directly into a regular expression.
SingleCharEsc ::= '\' [nrt\|.?*+(){} #x2Dx5B#X5D#x5E]
The following table shows valid single character escapes and their descriptions.
| Valid single character escapes | Set of characters C(R) |
|---|---|
| \n | The new line character (#xA). |
| \r | The return character (#xD). |
| \t | The tab character (#x9). |
| \\ | \ |
| \| | | |
| \. | . |
| \- | - |
| \^ | ^ |
| \? | ? |
| \* | * |
| \+ | + |
| \{ | { |
| \} | } |
| \( | ( |
| \) | ) |
| \{ | { |
| \} | } |
| \[ | [ |
| \] | ] |
XML Schema Regular Expressions | XML Schema Regular Expressions Reference Chart | Data Type Facets