Skip to content

Commit

Permalink
[regex] a slightly more verbose explanation of alternation
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpilot committed Sep 15, 2010
1 parent 6d48a37 commit e547152
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/regexes.pod
Expand Up @@ -359,9 +359,11 @@ items with square brackets:

X<regex; alternation>

Separate I<alternations>--tokens and units of which I<any> can match-- with
vertical bars. One vertical bar between two parts of a regex means that the
longest alternative wins. Two bars make the first matching alternative win.
Separate I<alternations>--parts of a regex of which I<any> can match--
with vertical bars. One vertical bar between multiple parts of a regex
means that the alternatives are tried in parallel and the longest
matching alternative wins. Two bars make the regex engine try each
alternative in order and the first matching alternative wins.

=begin programlisting

Expand Down

0 comments on commit e547152

Please sign in to comment.