On the perlunicode page, available Unicode character classes are available. I found it as a reference in perlrebackslash, which documents special character classes and backslash sequences, such as \p{...} in regular expressions.
The summary is that for all but the most common property classes, the property type and property value are required, separated by the symbol : or = . However, it appears that the full-width character is not mentioned as a predefined property.
But there is a Block / Blk property that can have Halfwidth and Fullwidth Forms ( U+FF00 - U+FFEF ) as the value:
/\p{Block=Halfwidth and Fullwidth Forms}/
This will match your input (tested on v16.3).
A useful tool for this is uniprops .
$ uniprops U+FF41 U+FF41 βΉο½βΊ \N{FULLWIDTH LATIN SMALL LETTER A} \w \pL \p{LC} \p{L_} \p{L&} \p{Ll} All Any Alnum Alpha Alphabetic Assigned InHalfwidthAndFullwidthForms Cased Cased_Letter LC Changes_When_Casemapped CWCM Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Ll L Gr_Base Grapheme_Base Graph GrBase Halfwidth_And_Fullwidth_Forms Hex XDigit Hex_Digit ID_Continue IDC ID_Start IDS Letter L_ Latin Latn Lowercase_Letter Lower Lowercase Print Word XID_Continue XIDC XID_Start XIDS X_POSIX_Alnum X_POSIX_Alpha X_POSIX_Graph X_POSIX_Lower X_POSIX_Print X_POSIX_Word X_POSIX_XDigit
As you can see, \p{Block=Halfwidth and Fullwidth Forms} can also be written \p{In Halfwidth and Fullwidth Forms} .
amon source share