diff options
author | Ilya Zakharevich <ilya@math.berkeley.edu> | 1998-06-26 22:55:26 -0400 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-06-28 21:09:48 +0000 |
commit | b85d18e97b6ae9e0cc168f99b999fd3fd33104bd (patch) | |
tree | fba77924a69fae7095030b314eb5e20f98b74006 /pod | |
parent | b174585de5ccc9973ba572393b2b34e1a6a5b749 (diff) | |
download | perl-b85d18e97b6ae9e0cc168f99b999fd3fd33104bd.tar.gz |
applied patch, tweaked doc, and regen regnodes.h
Message-Id: <199806270655.CAA29144@monk.mps.ohio-state.edu>
Subject: [PATCH 5.004_68] \z in RE
p4raw-id: //depot/perl@1250
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlre.pod | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pod/perlre.pod b/pod/perlre.pod index ebd58582d0..30608ced75 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -177,8 +177,9 @@ Perl defines the following zero-width assertions: \b Match a word boundary \B Match a non-(word boundary) - \A Match at only beginning of string - \Z Match at only end of string (or before newline at the end) + \A Match only at beginning of string + \Z Match only at end of string, or before newline at the end + \z Match only at end of string \G Match only where previous m//g left off (works only with /g) A word boundary (C<\b>) is defined as a spot between two characters that @@ -189,7 +190,7 @@ represents backspace rather than a word boundary.) The C<\A> and C<\Z> are just like "^" and "$", except that they won't match multiple times when the C</m> modifier is used, while "^" and "$" will match at every internal line boundary. To match the actual end of the string, not ignoring newline, -you can use C<\Z(?!\n)>. The C<\G> assertion can be used to chain global +you can use C<\z>. The C<\G> assertion can be used to chain global matches (using C<m//g>), as described in L<perlop/"Regexp Quote-Like Operators">. |