Quote:
Originally Posted by fbrzvnrnd
You can search text in straight quotes using RegEx, and replace it with curly ones. Using RegEx could give you more instruments to get the text you really need and jump the other. The regex I wrote about book/article title is an example.
|
Thanks.
I strongly suspect that we're all familiar with the use of regular expressions, but unfortunately they really don't help with the fundamental problem we're addressing here. You can certainly use a regex to find a single quote at the start of a word, but the problem is knowing whether to replace it with an left or a right curly quote. How would you address that issue?
Eg, if you find the string
'ello you need to replace the straight quote with a right apostrophe (abbreviated word), whereas if you find the string
'hello you need to replace it with left apostrophe (opening speech or quotation mark).
Have you any suggestions to assist with this?