Node:The | Character, Next:Grouping with ()s, Previous:The . Character, Up:The Simple
The | special character is equivalent to an "or" in regular expressions. This character is used to give a choice. So, the regular expression abc|def will match any string that contains either abc or def.
|
abc|def
abc
def