Skip to content

Commit 58a9ca5

Browse files
committed
get hybrid ** out of my head and into spec
1 parent fe723c3 commit 58a9ca5

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

S05-regex.pod

Lines changed: 14 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: 8 Sep 2011
21-
Version: 146
20+
Last Modified: 20 Sep 2011
21+
Version: 147
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
@@ -1027,6 +1027,18 @@ allow whitespace after the comma but not before, you can say:
10271027

10281028
/ <element>**[','\s*] /
10291029

1030+
You may use both forms of C<**> at once by use of this special form:
1031+
1032+
/ <expr> ** 0..* ** ',' /
1033+
1034+
The default is a mininum of 1 time, so when you write
1035+
1036+
/ <stuff> ** ',' /
1037+
1038+
it really means
1039+
1040+
/ <stuff ** 1..* ** ',' /
1041+
10301042
=item *
10311043

10321044
Negative range values are allowed, but only when modifying a reversible

0 commit comments

Comments
 (0)