Skip to content

Commit 37279cc

Browse files
committed
Eliminates non-working conjunctions.
Thanks to @ronaldxs for spotting them. Closes #2064. Also some reflow around that change.
1 parent d57ea25 commit 37279cc

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

doc/Language/regexes.pod6

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,14 @@ another approach is to use Unicode character properties. These come in
249249
the form C«<:property>», where C<property> can be a short or long
250250
Unicode General Category name. These use pair syntax.
251251
252-
To match against a Unicode Property:
252+
To match against a Unicode property you can use either smartmatch or L<C<uniprop>|/routine/uniprop>:
253253
254254
"a".uniprop('Script'); # OUTPUT: «Latin␤»
255255
"a" ~~ / <:Script<Latin>> /; # OUTPUT: «「a」␤»
256256
"a".uniprop('Block'); # OUTPUT: «Basic Latin␤»
257257
"a" ~~ / <:Block('Basic Latin')> /; # OUTPUT: «「a」␤»
258258
259-
Unicode General Categories:
259+
These are the unicode general categories used for matching:
260260
261261
=begin table
262262
@@ -314,11 +314,9 @@ Categories can be used together, with an infix operator:
314314
315315
Operator | Meaning
316316
==========+=========
317-
\+ | set union
318-
\| | set union
319-
& | set intersection
317+
+ | set union
320318
- | set difference
321-
^ | set symmetric difference
319+
322320
323321
=end table
324322
@@ -332,10 +330,11 @@ parentheses; for example:
332330
333331
=head2 X«Enumerated Character Classes and Ranges|regex,<[ ]>;regex,<-[ ]>»
334332
335-
Sometimes the pre-existing wildcards and character classes are not enough.
336-
Fortunately, defining your own is fairly simple. Within C«<[ ]>», you
337-
can put any number of single characters and ranges of characters (expressed
338-
with two dots between the end points), with or without whitespace.
333+
Sometimes the pre-existing wildcards and character classes are not
334+
enough. Fortunately, defining your own is fairly simple. Within C«<[ ]>»,
335+
you can put any number of single characters and ranges of characters
336+
(expressed with two dots between the end points), with or without
337+
whitespace.
339338
340339
"abacabadabacaba" ~~ / <[ a .. c 1 2 3 ]>* /;
341340
# Unicode hex codepoint range

0 commit comments

Comments
 (0)