Quote:
Originally Posted by Ripplinger
That's getting closer and it will pick up more, but it won't work on a sentence where the end quote isn't directly before the </p>, so it wouldn't pick up this sentence if the beginning quote was missing:
“But how would you deal with these miseries out of the past?” I asked.
Even if there were 2 regex strings to run to be able to pick up both sentence structures would still be much better than just hoping you find them all in proofing.
|
this should work.
Code:
(<p[^>]*>)(?:\s+)?([^“”]+?”)(.*?)(?:\s+)?(</p>)
\1“\2\3\4