Skip to content

Commit ebd2436

Browse files
committed
:ii implies :i, :mm implies :m
1 parent 1c74b86 commit ebd2436

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

S05-regex.pod

Lines changed: 8 additions & 3 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: 31 Jul 2012
21-
Version: 158
20+
Last Modified: 5 Oct 2012
21+
Version: 159
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
@@ -225,7 +225,9 @@ is required (as defined in TR18 section 2.4). In grapheme mode level 2 is
225225
required.
226226

227227
The C<:ii> (or C<:samecase>) variant may be used on a substitution to change the
228-
substituted string to the same case pattern as the matched string.
228+
substituted string to the same case pattern as the matched string. It implies
229+
the same pattern semantics as C<:i> above, so it is not necessary to
230+
put both C<:i> and C<:ii>.
229231

230232
If the pattern is matched without the C<:sigspace> modifier, case
231233
info is carried across on a character by character basis. If the
@@ -273,6 +275,9 @@ base character.
273275

274276
The C<:mm> (or C<:samemark>) variant may be used on a substitution to change the
275277
substituted string to the same mark/accent pattern as the matched string.
278+
It implies the same pattern semantics as C<:m> above, so it is not necessary
279+
to put both C<:m> and C<:mm>.
280+
276281
Mark info is carried across on a character by character basis. If
277282
the right string is longer than the left one, the remaining characters
278283
are substituted without any modification. (Note that NFD/NFC distinctions

0 commit comments

Comments
 (0)