diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2002-12-12 20:35:29 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2002-12-12 20:35:29 +0000 |
commit | f14c76ed18fcf3fc609cea29294703220581a43a (patch) | |
tree | a9f2029f27c012fcaf665e055fb0515058f78bed /pod | |
parent | 7e107e90b7bd52c7fb110ac98da6bb7ab38e8959 (diff) | |
download | perl-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')
-rw-r--r-- | pod/perlre.pod | 1 | ||||
-rw-r--r-- | pod/perlretut.pod | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod index 5e99fd3af5..85ce658791 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -188,6 +188,7 @@ In addition, Perl defines the following: \C Match a single C char (octet) even under Unicode. NOTE: breaks up characters into their UTF-8 bytes, so you may end up with malformed pieces of UTF-8. + Unsupported in lookbehind. A C<\w> matches a single alphanumeric character (an alphabetic character, or a decimal digit) or C<_>, not a whole word. Use C<\w+> 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 |