In general, any character will match itself, but there are a dozen special characters, including the [[escape character]].
In general, any character will match itself, but there are a dozen special characters, including the [[escape character]].
−
To match any of 2 or more characters, enclose them in square brackets. For example,
+
To match any of 2 or more characters, enclose them in square brackets. For example, <br /><br /> gr[ae]y
−
<br /><br /> gr[ae]y
+
<br /><br /> will match ''gray'' or ''grey''.
−
<br /><br />
−
will match ''gray'' or ''grey''.
A regular expression is matched from left to right and is processed one [[token]] at a time. Certain characters have special meanings within the description of a regular language:
A regular expression is matched from left to right and is processed one [[token]] at a time. Certain characters have special meanings within the description of a regular language: