File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -203,10 +203,17 @@ Predefined subrules:
203
203
204
204
The character classes so far are mostly for convenience; a more systematic
205
205
approach is the use of Unicode properties. They are called in the form C <<
206
- <:property> >> , where C < property > can be a short or long Unicode property
207
- name.
206
+ <:property> >> , where C < property > can be a short or long Unicode General
207
+ Category name. These use pair syntax .
208
208
209
- The following list is stolen from the Perl 5
209
+ To match against a specific value for a Unicode Property:
210
+
211
+ "a".uniprop('Script') # Latin
212
+ "a" ~~ / <:Script<Latin>> /
213
+ "a".uniprop('Block') # Basic Latin
214
+ "a" ~~ / <:Block('Basic Latin') /
215
+
216
+ The following list of Unicode General Categories is stolen from the Perl 5
210
217
L < perlunicode|http://perldoc.perl.org/perlunicode.html > documentation:
211
218
212
219
= begin table
You can’t perform that action at this time.
0 commit comments