Author: lwall
Date: 2010-04-15 19:47:19 +0200 (Thu, 15 Apr 2010)
New Revision: 30393

Modified:
   docs/Perl6/Spec/S05-regex.pod
Log:
[S05] say what happens with negative quantifier ranges


Modified: docs/Perl6/Spec/S05-regex.pod
===================================================================
--- docs/Perl6/Spec/S05-regex.pod       2010-04-15 14:44:59 UTC (rev 30392)
+++ docs/Perl6/Spec/S05-regex.pod       2010-04-15 17:47:19 UTC (rev 30393)
@@ -928,6 +928,21 @@
 
 =item *
 
+Negative range values are allowed, but only when modifying a reversible
+pattern (such as C<after> could match).  For example, to search the
+surrounding 200 characters as defined by 'dot', you could say:
+
+    / . ** -100..100 <element> /
+
+Similarly, you can back up 50 characters with:
+
+    / . ** -50 <element> /
+
+[Conjecture: A negative quantifier forces the construct to be
+considered procedural rather than declarational.]
+
+=item *
+
 C<< <...> >> are now extensible metasyntax delimiters or I<assertions>
 (i.e. they replace PerlĀ 5's crufty C<(?...)> syntax).
 

Reply via email to