grep/regex can't find accented word

后端 未结 5 2045
抹茶落季
抹茶落季 2021-01-18 20:41

I\'m trying mount a regex that get some words on a file where all letters of this word match with a word pattern.

My problem is, the regex can\'t find accented words

5条回答
  •  青春惊慌失措
    2021-01-18 21:20

    Assuming everything is UTF-8, I’d usually just use something like

    perl -CSAD -le 'print if /^carroça{1,3}$/' filenames
    

    because then I know what it’s doing.

提交回复
热议问题