I am trying to use Notepad++ to substitute some text. I am new to using regex and I am having trouble with this:
[CHARA
Make sure you update Notepad++ to the latest version - they improved the regex engine considerably in recent updates.
If you have a look at the regex documentation of Notepad++, you'll see that it actually supports control sequences to change the capitalization in the substitution.
I am not quite sure whether you want to match those square brackets as well. If all you want is to turn your match into lower case, then you can use this in the Replace with:
part:
\L$0
The \L
turns everything lower case until an \E
is encountered, and the $0
refers to your entire match, so that you can write it back.