IBM 15 Switch User Manual


 
125
Building CLEM Expressions
Characters
Matches
\0nn The character with octal value 0nn (0 <= n <= 7)
\0mnn The character with octal value 0mnn (0 <= m <= 3, 0 <= n <= 7)
\xhh The character with hexadecimal value 0xhh
\uhhhh The character with hexadecimal value 0xhhhh
\t The tab character (‘\u0009’)
\n The newline (line feed) character (‘\u000A’)
\r The carriage-return character (‘\u00 0D’)
\f The form -feed character (‘\u 000C’)
\a The alert (bell) character (‘\u0007’)
\e The escape character (‘\u001B’)
\cx The control character corresponding to x
Matching Character Classes
Character classes
Matches
[abc] a, b, or c (simple class)
[^abc] Any character except a, b, or c (subtraction)
[a-zA-Z]
a through z or A t hrough Z, inclusive (range)
[a-d[m-p]] a through d, or m through p (union). Alternatively this could be specied
as [a-dm-p]
[a-z&&[def]] a through z, and d, e, or f (intersection)
[a-z&&[^bc]] a through z, except for b and c (subtraction). Alternativ el y this could
be specied as [ad-z]
[a-z&&[^m-p]]
a through z, and not m through p (subtraction). Alternatively this could
be specied as [a-lq-z]
Predefined Character Classes
Predened character classes
Matches
.
Any character (may or may not match line terminators)
\d Any digit: [0-9]
\D A non-digit: [^0-9]
\s A white space character: [ \t\ n\x0B\f\r]
\S A non-white spa ce character: [^\s]
\w A word character: [a-zA-Z_0-9]
\W A non-word character: [^\w]
Boundary Matches
Boundary matchers Matches
^ The beginning of a line
$
The end of a line
\b A word boundary
\B A non-word boundary
\A The begi nning of the input