Logical and grouping operators
Use these items to match a sequence of characters and indicate subexpressions.
AB
|
Matches pattern A followed by pattern B |
A|B
|
Matches either pattern A or pattern B |
(A)
|
Groups pattern A as a subexpression for other operations or for back references |