This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05d7b09
)
Docs: Typo: \{-1} -> \g{-1}
author
Michael Witten
<mfwitten@gmail.com>
Tue, 7 Apr 2009 19:59:19 +0000
(14:59 -0500)
committer
Yves Orton
<demerphq@gmail.com>
Tue, 7 Apr 2009 21:40:02 +0000
(23:40 +0200)
Signed-off-by: Michael Witten <mfwitten@gmail.com>
pod/perlretut.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perlretut.pod
b/pod/perlretut.pod
index
a43bea1
..
7131769
100644
(file)
--- a/
pod/perlretut.pod
+++ b/
pod/perlretut.pod
@@
-2420,7
+2420,7
@@
containing just one word character is a palindrome. Otherwise it must
have a word character up front and the same at its end, with another
palindrome in between.
- /(?: (\w) (?...Here be a palindrome...) \{-1} | \w? )/x
+ /(?: (\w) (?...Here be a palindrome...) \
g
{-1} | \w? )/x
Adding C<\W*> at either end to eliminate what is to be ignored, we already
have the full pattern: