Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[regex] add a note about a wrong example, found by miso2217_++
  • Loading branch information
moritz committed Apr 10, 2011
1 parent 6b4bbbe commit 4507df3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/regexes.pod
Expand Up @@ -670,6 +670,11 @@ backtracking makes C<\w+> always match a full word:

=begin programlisting

# XXX: does actually match, because m/<&dup>/
# searches for a starting position where the
# whole regex matches. Find an example that
# doesn't match

my regex word { :ratchet \w+ [ \' \w+]? }
my regex dup { <word=&word> \W+ $<word> }

Expand Down

0 comments on commit 4507df3

Please sign in to comment.