summaryrefslogtreecommitdiff
path: root/pod/perlretut.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2002-12-12 20:35:29 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2002-12-12 20:35:29 +0000
commitf14c76ed18fcf3fc609cea29294703220581a43a (patch)
treea9f2029f27c012fcaf665e055fb0515058f78bed /pod/perlretut.pod
parent7e107e90b7bd52c7fb110ac98da6bb7ab38e8959 (diff)
downloadperl-f14c76ed18fcf3fc609cea29294703220581a43a.tar.gz
Integrate from maint-5.8 : changes 18290-1, 18293-5, 18297
p4raw-id: //depot/perl@18299 p4raw-integrated: from //depot/maint-5.8/perl@18298 'copy in' pod/perlretut.pod (@17645..) pod/perlre.pod (@18080..) ext/POSIX/t/is.t (@18189..) t/op/subst.t (@18214..) ext/POSIX/t/posix.t (@18271..) t/op/pat.t (@18276..) ext/POSIX/POSIX.pod (@18294..) 'merge in' regexec.c (@18095..)
Diffstat (limited to 'pod/perlretut.pod')
-rw-r--r--pod/perlretut.pod6
1 files changed, 5 insertions, 1 deletions
diff --git a/pod/perlretut.pod b/pod/perlretut.pod
index f0b5d1d389..57fc772df7 100644
--- a/pod/perlretut.pod
+++ b/pod/perlretut.pod
@@ -1707,7 +1707,7 @@ it matches I<any> byte 0-255. So
The last regexp matches, but is dangerous because the string
I<character> position is no longer synchronized to the string I<byte>
position. This generates the warning 'Malformed UTF-8
-character'. C<\C> is best used for matching the binary data in strings
+character'. The C<\C> is best used for matching the binary data in strings
with binary data intermixed with Unicode characters.
Let us now discuss the rest of the character classes. Just as with
@@ -2004,6 +2004,10 @@ They evaluate true if the regexps do I<not> match:
$x =~ /foo(?!baz)/; # matches, 'baz' doesn't follow 'foo'
$x =~ /(?<!\s)foo/; # matches, there is no \s before 'foo'
+The C<\C> is unsupported in lookbehind, because the already
+treacherous definition of C<\C> would become even more so
+when going backwards.
+
=head2 Using independent subexpressions to prevent backtracking
The last few extended patterns in this tutorial are experimental as of