diff options
author | Mark Kvale <kvale@phy.ucsf.edu> | 2002-03-27 08:45:37 -0800 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-27 23:50:23 +0000 |
commit | 54c18d0455d4f9550786bea467f5a04c96e86890 (patch) | |
tree | 6d587bcbd65648da33ad25d1350c02387264a023 /pod/perlre.pod | |
parent | ef4a39e599a07c97b0213b41bfa69f4a6f4a17ed (diff) | |
download | perl-54c18d0455d4f9550786bea467f5a04c96e86890.tar.gz |
[DOC PATCH] Regex \G and POSIX restrictions
Message-Id: <02032716453705.38063@ivy.ucsf.edu>
p4raw-id: //depot/perl@15562
Diffstat (limited to 'pod/perlre.pod')
-rw-r--r-- | pod/perlre.pod | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod index 58cd6456f5..fef8ce3b6f 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -316,8 +316,10 @@ with a '^'. This is a Perl extension. For example: [:^space:] \S \P{IsSpace} [:^word:] \W \P{IsWord} -The POSIX character classes [.cc.] and [=cc=] are recognized but -B<not> supported and trying to use them will cause an error. +Perl respects the POSIX standard in that POSIX character classes are +only supported within a character class. The POSIX character classes +[.cc.] and [=cc=] are recognized but B<not> supported and trying to +use them will cause an error. Perl defines the following zero-width assertions: @@ -347,7 +349,8 @@ It is also useful when writing C<lex>-like scanners, when you have several patterns that you want to match against consequent substrings of your string, see the previous reference. The actual location where C<\G> will match can also be influenced by using C<pos()> as -an lvalue. See L<perlfunc/pos>. +an lvalue. Currently C<\G> only works when used at the +beginning of the pattern. See L<perlfunc/pos>. The bracketing construct C<( ... )> creates capture buffers. To refer to the digit'th buffer use \<digit> within the |