Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2901

Programming • Re: [Bash] PCRE: Latin letters with diacritics false match and not-match

$
0
0
I have found solution.
You have to use both special switches (*UCP)and (*UTF) (their order is irrelevant):

Code:

$ grep -P '(*UTF)(*UCP)\b\p{Ll}{2}' diakritika.txt -čí-čia-čo-ký-mám-úži

Code:

$ pcregrep '(*UCP)(*UTF)\b\p{Ll}{2}' diakritika.txt -čí-čia-čo-ký-mám-úži

Code:

$ pcre2grep '(*UCP)(*UTF)\b\p{Ll}{2}' diakritika.txt -čí-čia-čo-ký-mám-úži

Statistics: Posted by ruwolf — 2025-01-09 20:08



Viewing all articles
Browse latest Browse all 2901

Trending Articles