16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

egexp<br />

that collation sequence). Any single character is itself. Do not give a<br />

collation sequence that is not part of the current locale.<br />

v Equivalence classes can be specified by enclosing a character or<br />

collation sequence inside square bracket equals. For example, [=a=]<br />

matches any character in the same equivalence class as a. This normally<br />

expands to all the variants of a in the current locale—for example, a,<br />

\(a:, \(a’, ... On some locales it might include both the uppercase and<br />

lowercase of a given character. In the P<strong>OS</strong>IX locale, this always expands<br />

to only the character given.<br />

v Within a character class expression (one made with square brackets),<br />

the following constructs can be used to represent sets of characters.<br />

These constructs are used for internationalization and handle the<br />

different collation sequences as required by P<strong>OS</strong>IX.<br />

[:alpha:]<br />

Any alphabetic character.<br />

[:lower:]<br />

Any lowercase alphabetic character.<br />

[:upper:]<br />

Any uppercase alphabetic character.<br />

[:digit:]<br />

Any digit character.<br />

886 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference<br />

[:alnum:]<br />

Any alphanumeric character (alphabetic or digit).<br />

[:space:]<br />

Any white-space character (blank, horizontal tab, vertical tab).<br />

[:graph:]<br />

Any printable character, except the blank character.<br />

[:print:]<br />

Any printable character, including the blank character.<br />

[:punct:]<br />

Any printable character that is not white space or alphanumeric.<br />

[:cntrl:]<br />

Any nonprintable character.<br />

For example, given the character class expression:<br />

[:alpha:]<br />

you need to enclose the expression within another set of square<br />

brackets, as in:<br />

/[[:alpha:]]/<br />

v Character ranges are specified by a dash (–), between two characters, or<br />

collation sequences. These indicates all character or collation sequences<br />

that collate between two characters or collation sequences. It does not<br />

refer to the native character set. For example, in the P<strong>OS</strong>IX locale, [a-z]<br />

means all the lowercase alphabetics, even if they don’t agree with the<br />

binary machine ordering. However, since many other locales do not<br />

collate in this manner, use of ranges are not recommended, and are not<br />

used in strictly conforming P<strong>OS</strong>IX.2 applications. An endpoint of a range<br />

may explicitly be a collation sequence; for example, [[.ch.]-[.ll.]] is<br />

valid. However, equivalence classes or character classes are not:<br />

[[=a=]-z] is not permitted.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!