Regular expressions for making uppercase accented letters

516 views Asked by At

I need to make a replacement like this from arouzière to AROUZIÈRE.

I use notepad++ 6.6.7 for this in the following manner:

search: (\p{L}*?) replace: \U\1\E

Problem: The result is AROUZIèRE. As you can see the accented letter is not made UPPERCASE. Do you know a workaround or even if this is possible via RegEx with notepad++? Thanks a lot for any help.

1

There are 1 answers

0
dawg On

Try the pattern

(\p{Ll})

Which find lowercase letters that have an uppercase variant.

Demo

Note that some unicode characters do not have an uppercase variant.