Skip to content

Commit 76c977a

Browse files
committed
:p is incompatible with scanners
:p may not be used with :ex, :ov, :g, :nth, or :x modifiers. fixes #16
1 parent c939721 commit 76c977a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

S05-regex.pod

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Synopsis 5: Regexes and Rules
1717

1818
Created: 24 Jun 2002
1919

20-
Last Modified: 23 May 2012
21-
Version: 156
20+
Last Modified: 28 Jul 2012
21+
Version: 157
2222

2323
This document summarizes Apocalypse 5, which is about the new regex
2424
syntax. We now try to call them I<regex> rather than "regular
@@ -314,6 +314,10 @@ is roughly equivalent to
314314

315315
m:p($p)/.*? <( pattern )> /
316316

317+
All of C<:g>, C<:ov>, C<:nth>, and C<:x> are incompatible with C<:p> and
318+
will fail, recommending use of C<:c> instead. The C<:ex> modifier is allowed
319+
but will produce only matches at that position.
320+
317321
=item *
318322

319323
The new C<:s> (C<:sigspace>) modifier causes certain whitespace sequences

0 commit comments

Comments
 (0)