Skip to content

Commit

Permalink
Revert "Regexes: document :overlap and :exhaustive"
Browse files Browse the repository at this point in the history
This reverts commit 09867b7.

It causes rakudo to hang on regexes.pod. TODO: reduce to minimal
example, file rakudo bug, restore the commit once fixed (or work around it)
  • Loading branch information
moritz committed Jan 30, 2015
1 parent 400bdf2 commit 08b2628
Showing 1 changed file with 2 additions and 37 deletions.
39 changes: 2 additions & 37 deletions lib/Language/regexes.pod
Expand Up @@ -826,30 +826,7 @@ the start of the string, but C<:c> overrides that.
=head3 Exhaustive
To find all possible matches of a regex, including overlapping ones, and
several ones that start at the same position, supply the C<:exhaustive> (short
C<:ex>) adverb.
given 'abracadabra' {
for m:exhaustive/ a .* a / -> $match {
say ' ' x $match.from, ~$match;
}
}
Produces this output:
=begin code
abracadabra
abracada
abraca
abra
acadabra
acada
aca
adabra
ada
abra
=end code
TODO
=head3 X<Global|regex adverb,:global;regex adverb,:g>
Expand Down Expand Up @@ -878,19 +855,7 @@ C<:p> is a shortcut for C<:pos>.
=head3 Overlap
To get several matches, including overlapping matches, but only one (the
longest) from each starting position, specify the C<:overlap> (short C<:ov>)
adverb:
given 'abracadabra' {
for m:overlap/ a .* a / -> $match {
say ' ' x $match.from, ~$match;
}
}
produces
=begin code
TODO
=head1 Best Practices and Gotchas
Expand Down

0 comments on commit 08b2628

Please sign in to comment.