Skip to content

Commit 23578bb

Browse files
committed
Update regexes.pod6 fix reversed suppress capture operators ".&"
1 parent 5db6e0e commit 23578bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Language/regexes.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,10 +1384,10 @@ called with C«<named-regex>». At the same time, calling a named regex
13841384
installs a named capture with the same name.
13851385
13861386
To give the capture a different name from the regex, use the syntax
1387-
C«<capture-name=named-regex>». If no capture is desired, a leading dot or
1388-
ampersand will suppress it: C«<.named-regex>» if a regex declared in the same
1389-
lexical context is used, C«<&named-regex>» if it is a method declared in the
1390-
same class or grammar.
1387+
C«<capture-name=named-regex>». If no capture is desired, a leading dot
1388+
or ampersand will suppress it: C«<.named-regex>» if it is a method
1389+
declared in the same class or grammar, C«<&named-regex>» for a regex
1390+
declared in the same lexical context.
13911391
13921392
Here's more complete code for parsing C<ini> files:
13931393

0 commit comments

Comments
 (0)