View Single Post
Old 11-17-2023, 12:41 AM   #4
jwes
Connoisseur
jwes began at the beginning.
 
Posts: 82
Karma: 10
Join Date: Jul 2023
Device: none
Quote:
Originally Posted by DiapDealer View Post
You need to use an \E to terminate an \L or \U otherwise they'll just keep going. So I would suggest an \E immediately after the capture group that represents the '-' in the replace expression (or before it).

\1\L\2\E\4\5\L\6

Or:

\1\L\2\4\E\5\L\6

I'm not at a computer where I can test the replace expression exactly.

I also think you don't need the brackets [] around each individual \p{Lu} instance.
Thank you, that fixed it. Is there documention about \L, \U, and \E? I didn't see it in the user guide or scanning through the links.
jwes is offline   Reply With Quote