Regular Expression - (ab|cd) - matches ab or cd
The round brackets and pipe symbol (( | )) match longer alternatives. Each of the alternatives presented can be single or multiple characters.
Match either this or that:
This would match the following:
Note that this could be expressed as follows (although less clearly):
It would not match the following:
thai - has to be this or that
thit - has to be this or that