Character Class Escape Sequences


Some escape sequences, called character class escape sequences, can be used to specify multiple characters at one location. Table C-5 lists some character class escape sequences that you can use as shortcuts for commonly matched character groupings when you’re building custom regular expressions.

Table C-5: SHORTHAND NOTATIONS FOR COMMON CHARACTER GROUPS

Expression

Description

\d

Any digit

\D

Any non-digit

\p{L}

Any letter

\p{Lu}

Any lowercase letter

\p{Ll}

Any uppercase letter

\p{N}

Any number

\p{P}

Any punctuation

\p{Z}

Any separator character




The XMLSPY Handbook
The Official XMLSPY Handbook
ISBN: 764549642
EAN: 2147483647
Year: 2001
Pages: 121
Authors: Larry Kim

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net