Fixing bad quotes
Posted: Tue Apr 21, 2009 8:46 pm
Hello,
I am trying to find a regex to fix quotes in a document for example:
change
'Good. Then let's do it.'
to
"Good. Then let's do it."
I've tried the find expression
'((\\')|[^'(\\')])+'
and
'[^'\r\n]*'
but both catch the ' in let's as a quote as well.
Any ideas?
Thanks!
-Joe
I am trying to find a regex to fix quotes in a document for example:
change
'Good. Then let's do it.'
to
"Good. Then let's do it."
I've tried the find expression
'((\\')|[^'(\\')])+'
and
'[^'\r\n]*'
but both catch the ' in let's as a quote as well.
Any ideas?
Thanks!
-Joe