October 10, 2006 at 3:26 pm #3873
Yutaka Emura
Keymaster
Actually, You can do those now:
Select “Replace” on the Search menu (or press CTRL + H), Check “Use Regular Expressions”, and then:
Eduate Quotes:
Find: '(.*?)'
Replace with: ‘1’
Stupefy Quotes:
Find:‘(.*?)’
Replace with: '1'
Or you can write macros like these (JavaScript):
Eduate Quotes:
document.selection.Replace("x27(.*?)x27","‘1’",eeFindNext | eeFindReplaceCase | eeReplaceAll | eeFindReplaceRegExp);
Stupefy Quotes:
document.selection.Replace("‘(.*?)’","x271x27",eeFindNext | eeFindReplaceCase | eeReplaceAll | eeFindReplaceRegExp);
I will submit these macros into the library.