|
DEELX Basic Pattern Syntax: Quoted Characters
Return: Content | Prev: Simple escaped characters | Next: Character sets
Quoted Characters (\Q...\E)
Quote (disable) pattern metacharacters from \Q till \E.
If begins with \U, ends with \E, it will quote (disable) pattern metacharacters from \U till \E, and all lowercase alphas between them will be turned into uppercase.
If begins with \L, ends with \E, it will quote (disable) pattern metacharacters from \L till \E, and all uppercase alphas between them will be turned into lowercase.
Remarks
If you need a long pattern of common characters, you should use \Q...\E.
Examples
Expression |
Description |
\Q(a+b)*3\E
|
Matches "(a+b)*3". |
\(a\+b\)\*3 |
Without \Q...\E, we need to escape each special character. |
|
|
|