Using Regular Expressions

Pattern Matching

Pattern Matching

Table C-1 describes the following types of pattern matching:

•Match any character.

•Treat a special character as a literal.

•Specify a list of matching values.

•Match the beginning of a line.

•Match the end of a line.

•Match entire lines.

•Exclude specified values.

•Match a range of values.

•Repeat a single character any number of times.

•Repeat an expression any number of times.

•Treat a composite expression within parentheses as a single expression to be repeated any number of times.

Table C-1

Description of Special Characters in Regular Expressions

 

 

 

 

 

To…

Use…

Example

 

 

 

 

 

Match a particular

match_string

To match the string st,

 

string

 

enter:

 

 

 

st

 

 

 

In response, SoftBench

 

 

 

matches any string

 

 

 

containing the string st

 

 

 

(for example, stock and

 

 

 

lists).

 

 

 

 

354

Appendix C

Page 354
Image 354
HP UX SoftBench Software manual Pattern Matching, 354