All > Technology > Programming > Perl
A list of possible choices from which you may select only one, as in "Would you like door A, B, or C?" Alternatives in regular expressions are separated with a single vertical bar:
|
. Alternatives in normal Perl expressions are separated with a double vertical bar:||
. Logical alternatives in "Boolean" expressions are separated with either||
oror
.- Browse Related Terms: alternatives, capturing, character class, cloister, Cluster, code subpattern, grep, metacharacter, modifier, options, pattern matching, quantifier, regex, regular expression, subpattern, watch expression
Also listed in: