This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlreref: alpha assertions are valid in (COND)
authorKarl Williamson <khw@cpan.org>
Sun, 27 Oct 2019 15:01:55 +0000 (09:01 -0600)
committerKarl Williamson <khw@cpan.org>
Fri, 1 Nov 2019 00:49:15 +0000 (18:49 -0600)
pod/perlreref.pod

index 1486fe7..cd1c84c 100644 (file)
@@ -261,10 +261,14 @@ There is no quantifier C<{,n}>. That's interpreted as a literal string.
    (?P>name)         Recurse into a named subpattern (python syntax)
    (?(cond)yes|no)
    (?(cond)yes)      Conditional expression, where "(cond)" can be:
-                     (?=pat)   lookahead
-                     (?!pat)   negative lookahead
-                     (?<=pat)  lookbehind
-                     (?<!pat)  negative lookbehind
+                     (?=pat)   lookahead; also (*pla:pat)
+                               (*positive_lookahead:pat)
+                     (?!pat)   negative lookahead; also (*nla:pat)
+                               (*negative_lookahead:pat)
+                     (?<=pat)  lookbehind; also (*plb:pat)
+                               (*lookbehind:pat)
+                     (?<!pat)  negative lookbehind; also (*nlb:pat)
+                               (*negative_lookbehind:pat)
                      (N)       subpattern N has matched something
                      (<name>)  named subpattern has matched something
                      ('name')  named subpattern has matched something