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

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -