Alternations
An Alternation is a character that modifies a regular expression to allow either/or matching.
Regular Expression | Description |
---|---|
| | Any one of the terms separated by the | (vertical bar) character. For example, cat|dog|tiger. When multiple subexpressions are satisfied using this symbol, the The left-most expression will be used . |