Alternations
An Alternation is a character that modifies a regular expression to allow either/or matching.
Regular Expression | Description |
---|---|
| | Matches any one of the elements separated by the | (vertical bar) character. For example, cat|dog|tiger. The left most successful match wins. |