Why does \ p {Lu} match lowercase letters?
Lu
should represent Letter, Uppercase
, however i am getting unexpected results
PS > 'Hello World' -replace '\p{Lu}', 'Z'
ZZZZZ ZZZZZ
As you can see, it Lu
replaces the upper and lower characters.
+3
source to share