When creating regular expressions, you can also specify a pattern containing multiple characters. You
create multiple-character regular expressions by joining letters, digits, or keyboard characters that do not
have special meaning. For example, a4% is a multiple-character regular expression. Put a backslash in
front of the keyboard characters that have special meaning when you want to remove their special
With multiple-character patterns, order is important. The regular expression a4% matches the character a
followed by a 4 followed by a % sign. If the string does not have a4%, in that order, pattern matching
fails. This multiple-character regular expression
uses the special meaning of the period character to match the letter a followed by any single character.
With this example, the strings ab, a!, or a2 are all valid matches for the regular expression.
You can remove the special meaning of the period character by putting a backslash in front of it. In the
only the string a. matches this regular expression.
You can create a multiple-character regular expression containing all letters, all digits, all keyboard
characters, or a combination of letters, digits, and other keyboard characters. These examples are all
valid regular expressions:
telebit 3107 v32bis
You can create more complex regular expressions to match multiple occurrences of a specified regular
expression by using some special characters with your single- and multiple-character patterns.
lists the special characters that specify "multiples" of a regular expression.
This example matches any number of occurrences of the letter a, including none:
This pattern requires that at least one letter a in the string is matched:
This pattern matches the string bb or bab:
This string matches any number of asterisks (*):
Special Characters Used as Multipliers
Matches 0 or more single- or multiple-character patterns.
Matches 1 or more single- or multiple-character patterns.
Matches 0 or 1 occurrences of the single- or multiple-character patterns.
Catalyst 6500 Series Switch SSL Services Module Command Reference
Using the CLI String Search