use*_*602 8 regex unicode perl utf-8
它似乎无法将重音Ó视为大写
#!/usr/bin/env perl
use strict;
use warnings;
use 5.14.0;
use utf8;
use feature 'unicode_strings';
" SIMÓN " =~ /^\s+(\p{Upper}+)/u;
print "$1\n";
Run Code Online (Sandbox Code Playgroud)
回报
SIM
Run Code Online (Sandbox Code Playgroud)
Perl应该能够使用Unicode数据,它已经将Ó标记为大写.来自emacsdescribe-char
character code properties: customize what to show
name: LATIN CAPITAL LETTER O WITH ACUTE
old-name: LATIN CAPITAL LETTER O ACUTE
general-category: Lu (Letter, Uppercase)
decomposition: (79 769) ('O' '?')
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1820 次 |
| 最近记录: |