Regular Expressions

F

TABLE 4

POSIX character classes (US-ASCII only)

 

 

 

 

 

 

Construct

 

Matches

 

 

 

 

 

 

\p{Blank}

 

A space or a tab: [ \t]

 

 

 

 

 

 

\p{Cntrl}

 

A control character: [\x00-\x1F\x7F]

 

 

 

 

 

 

\p{XDigit}

 

A hexadecimal digit: [0-9a-fA-F]

 

 

 

 

 

 

\p{Space}

 

A whitespace character: [ \t\n\x0B\f\r]

 

 

 

 

 

TABLE 5

java.lang.Character classes (simple java character type)

 

 

 

 

 

 

Construct

 

Matches

 

 

 

 

 

\p{javaLowerCase}

Equivalent to java.lang.Character.isLowerCase()

 

 

 

 

 

\p{javaUpperCase}

Equivalent to java.lang.Character.isUpperCase()

 

 

 

 

 

\p{javaWhitespace}

Equivalent to java.lang.Character.isWhitespace()

 

 

 

 

 

\p{javaMirrored}

Equivalent to java.lang.Character.isMirrored()

 

 

 

 

 

TABLE 6

Classes for Unicode blocks and categories

 

 

 

 

 

 

Construct

 

Matches

 

 

 

 

 

 

\p{InGreek}

 

A character in the Greek block (simple block)

 

 

 

 

 

 

\p{Lu}

 

An uppercase letter (simple category)

 

 

 

 

 

 

\p{Sc}

 

A currency symbol

 

 

 

 

 

 

\P{InGreek}

 

Any character except one in the Greek block (negation)

 

 

 

 

 

[\p{L}&&[^\p{Lu}]]

Any letter except an uppercase letter (subtraction)

 

 

 

 

 

TABLE 7

Boundary matches

 

 

 

 

 

 

Construct

 

Matches

 

 

 

 

 

 

^

 

The beginning of a line

 

 

 

 

 

 

$

 

The end of a line

 

 

 

 

 

 

\b

 

A word boundary

 

 

 

 

 

 

\B

 

A non-word boundary

 

 

 

 

 

 

\A

 

The beginning of the input

 

 

 

 

 

 

\G

 

The end of the previous match

 

 

 

 

 

 

\Z

 

The end of the input but for the final terminator, if any

 

 

 

 

 

 

\z

 

The end of the input

 

 

 

 

 

 

Brocade Network Advisor IP User Manual

1335

53-1003056-01

 

Page 1387
Image 1387
Brocade Communications Systems IP250 Regular Expressions Posix character classes US-ASCII only, Boundary matches