Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add more examples of character class ranges.
  • Loading branch information
flexibeast committed Oct 6, 2016
1 parent 7e5dae3 commit 79a5271
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/Language/regexes.pod6
Expand Up @@ -274,6 +274,10 @@ can put any number of single characters and ranges of characters (expressed
with two dots between the end points), with or without whitespace.
"abacabadabacaba" ~~ / <[ a .. c 1 2 3 ]> /
# Unicode hex codepoint range
"ÀÁÂÃÄÅÆ" ~~ / <[ \x[00C0] .. \x[00C6] ]> /
# Unicode named codepoint range
"ÀÁÂÃÄÅÆ" ~~ / <[ \c[LATIN CAPITAL LETTER A WITH GRAVE] .. \c[LATIN CAPITAL LETTER AE] ]> /
Between the C<< < > >> you can also use the same operators for categories
(C<+>, C<|>, C<&>, C<->, C<^>) to combine multiple range definitions and
Expand Down

0 comments on commit 79a5271

Please sign in to comment.