Node:The | Character, Next:, Previous:The . Character, Up:The Simple



The | Character

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.