c# - What does this regexp mean - "\p{Lu}"? -
i stumble across regular expression in c# port javascript, , not understand following:
[-.\p{lu}\p{ll}0-9]+ the part have hard time of course \p{lu}. regexp websites visited never mention modifier.
any idea?
these considered unicode properties.
the unicode property \p{l} — shorthand \p{letter} match kind of letter language. therefore, \p{lu} match uppercase letter has lowercase variant. and, opposite \p{ll} match lowercase letter has uppercase variant.
concisely, match lowercase/uppercase has variant language:
aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
Comments
Post a Comment