summaryrefslogtreecommitdiff
path: root/pod/perl595delta.pod
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2006-10-12 23:23:15 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-13 09:02:05 +0000
commitb9b4dddfa592f0a0a9bfbbcc9a725253c5d991f1 (patch)
tree5f71dc4a80fd4ecf351ca7a44ebf79c5a577cefe /pod/perl595delta.pod
parentc1e8580e8ecd78fc1f67b0caa695b9884a700d93 (diff)
downloadperl-b9b4dddfa592f0a0a9bfbbcc9a725253c5d991f1.tar.gz
Add possessive quantifiers to regex engine.
Message-ID: <9b18b3110610121223m191e47ddtce3398cb0e8ba320@mail.gmail.com> With doc tweaks p4raw-id: //depot/perl@29005
Diffstat (limited to 'pod/perl595delta.pod')
-rw-r--r--pod/perl595delta.pod9
1 files changed, 9 insertions, 0 deletions
diff --git a/pod/perl595delta.pod b/pod/perl595delta.pod
index e3c24d4453..e0c60796d6 100644
--- a/pod/perl595delta.pod
+++ b/pod/perl595delta.pod
@@ -78,6 +78,15 @@ $1 will be 'A', $2 will be 'B', $3 will be 'C' and $4 will be 'D' and not
$1 is 'A', $2 is 'C' and $3 is 'B' and $4 is 'D' that a .NET programmer
would expect. This is considered a feature. :-)
+=item Possessive Quantifiers
+
+Perl now supports the "possessive quantifier" syntax of the "atomic match"
+pattern. Basically a possessive quantifier matches as much as it can and never
+gives any back. Thus it can be used to control backtracking. The syntax is
+similar to non-greedy matching, except instead of using a '?' as the modifier
+the '+' is used. Thus C<?+>, C<*+>, C<++>, C<{min,max}+> are now legal
+quantifiers.
+
=back
=head1 Modules and Pragmas