C and C++ SoftBench User's Guide
Using Regular Expressions
Pattern Matching
Appendix C356
Specify a list of
valid matching
values.
[
valid_values
] To match either stack
or stock, enter:
st[ao]ck
To specify the string ab,
followed by any digit
except 5, enter:
ab[012346789]
Note that to treat an
opening or closing
bracket as a literal
string, it must be the
first character after the
opening bracket. For
example, to match all
the occurrences of ab]
and ab6, enter:
ab[]6]
To match all
occurrences of ab[ and
ab6, enter:
ab[[6]
Table C-1 Description of Special Characters in Regular Expressions
To… Use… Example