Hello, @maknol, @peterjones, and All
Here are two regexes, which could be useful to you :
(?-i)\u+ will match any non null sequence of Cyrillic Capital letter(s)
(?-i)(?<=\l|\u)(\d+|[[:punct:]]+)(?=\l|\u) will look for any non-null sequence of digit(s) OR punctuation character(s), ONLY IF surrounded, both, before and after with a letter, whatever its case
Then, each occurrence found could be, easily :
Converted to lower-case ( Ctrl + U )
Converted to upper-case ( Ctrl + Shift + U )
Deleted ( Delete )
You may also combine the two regexes, above, in the single regex, below :
(?-i)\u+|(?<=\l|\u)(\d+|[[:punct:]]+)(?=\l|\u)
However, due to some bugs with backward assertions of the Boost regex engine, used by N++, it may miss some occurrences
Just test, on the text below, the two individual regexes, above, first, then, the global one to see the slight differences :
аbc33def abc//DEf aBC33def aBC//DEf ' english
абв33где абв//ГДе аБВ33где аБВ//ГДе ' cyrillic
Now, @maknol, which kind of symbols are you expecting within words ? For a few amount of these symobls, we could restrict the matches, let’s say, to digits and the / symbol, for instance ?
And regarding the differences between the case conversions :
Proper Case and Proper Case (blend)
Sentence case and Sentence case (blend)
just looks at that example, below :
---------------------------------------- INITIAL text -----------------------------------------------------------------
GNU GENERAL PUBLIC LICENSE
abc aBc abC aBC Abc ABc AbC ABC 0000
everyone is permitted to copy and DisTRIbute verbatim copies of this License DOCUment. but changing it is NOT allowed.
^ ^^^ ^ ^^^^ ^^^
---------------------------------------- Proper Case -------------- ( Alt + U ) ---------------------------------------
Gnu General Public License
Abc Abc Abc Abc Abc Abc Abc Abc 0000
Everyone Is Permitted To Copy And Distribute Verbatim Copies Of This License Document. But Changing It Is Not Allowed.
---------------------------------------- Proper Case (blend) ------ ( Alt + Shift + U ) -------------------------------
GNU GENERAL PUBLIC LICENSE
Abc ABc AbC ABC Abc ABc AbC ABC 0000
Everyone Is Permitted To Copy And DisTRIbute Verbatim Copies Of This License DOCUment. But Changing It Is NOT Allowed.
---------------------------------------- Sentence case ------------ ( Ctrl + Alt + U ) --------------------------------
Gnu general public license
Abc abc abc abc abc abc abc abc 0000
Everyone is permitted to copy and distribute verbatim copies of this license document. But changing it is not allowed.
---------------------------------------- Sentence case (blend) ---- ( Ctrl + Alt + Shift + U ) ------------------------
GNU GENERAL PUBLIC LICENSE
Abc aBc abC aBC Abc ABc AbC ABC 0000
Everyone is permitted to copy and DisTRIbute verbatim copies of this License DOCUment. But changing it is NOT allowed.
From above, Peter and All, it’s easy to deduct that :
The Proper Case command UPPER-cases the first letter of each word and LOWER-cases all the other letters of each word
The Proper Case (blend) command UPPER-cases the first letter of each word and did NOT change the case of all the other letters of each word
The Sentence case command UPPER-cases the first letter of each sentence and LOWER-cases all the other letters of each sentence
The Sentence case (blend) command UPPER-cases the first letter of each sentence and did NOT change the case of all the other letters of each sentence
Best Regards,
guy038