2.2
PrintShop Web Administrator Guide | 132
Quantification
A quantifier after a character or group specifies how often that preceding expression is allowed to
occur. The most common quantifiers are ?, *, and +:
•
? The question mark indicates there is zero or one of the preceding element. For example, colou?r"
matches both color and colour.
•
* The asterisk indicates there are zero or more of the preceding element. For example, ab*c
matches "ac", "abc", "abbc", "abbbc", and so on.
•
+ The plus sign indicates that there is one or more of the preceding element. For example, ab+c
matches "abc", "abbc", "abbbc", and so on, but not "ac".
•
{n} Exactly n occurrences.
•
{n,} At least n occurrences.
•
{n,m} Between n and m occurrences.
There are 12 characters with special meanings:
•
the opening square bracket [
•
the backslash \
•
the forward slash /
•
the caret ^
•
the dollar sign $
•
the period or dot .
•
the vertical bar or pipe symbol |
•
the question mark ?
•
the asterisk or star *
•
the plus sign +
•
the opening round bracket (
•
the closing round bracket )
Special characters can be escaped by placing a backslash \ before the special character. A backslash
can be matched using \\.










