The rules for building a multicharacter regular expression are:
A one-character regular expression followed by an asterisk * matches zero or more occurrences of the regular expression. For example, [a-z]* matches zero or more lower-case characters.
A one-character regular expression followed by a plus + matches one or more occurrences of the regular expression. For example, [a-z]+ matches one or more lower- case characters.
A question mark ? is an optional element. It indicates that the preceding regular expression can occur zero or once in the string, but no more. For example, xy?z matches either xyz or xz.
The concatenation of regular expressions is a regular expression that matches the corresponding concatenation of strings. For example, [A-Z][a-z]* matches any capitalized word.
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.