Hi @FriendOfFred, and All,
I, personally, add your macro, which works correctly, on my configuration ! But I admit that I didn’t do intensive tests to determine when something is going wrong !
I’ve replied to a similar question, in the post, below :
https://notepad-plus-plus.org/community/topic/15909/replace-text-between-2-characters/2
So, here is a regex S/R, which will normalize the normal quotes to their enhanced version !
SEARCH (?-s)["“](.+?)["”]|['‘](.+?)['’]
REPLACE (?1“\1”:‘\2’)
Select the Regular expression search mode
Tick the Wrap around option
Click on the Replace All button
Et voilà !
So, given this initial text, below :
"Test" "Test” “Test" “Test” 'Test' 'Test’ ‘Test' ‘Test’You should get the following text :
“Test” “Test” “Test” “Test” ‘Test’ ‘Test’ ‘Test’ ‘Test’So, at any time, when you perform this S/R, you’re sure that, after replacement, you get the two syntaxes “Test” and ‘Test’, only !
You could, even, record this S/R as a macro, if you prefer to !
Cheers,
guy038