Quote:
Originally Posted by ElMiko
Not to long ago I asked a question about how do the opposite of this. Natrually now I need to now how to do the opposite of that...
I'm currently working on a document in which all double-quotations marks have been replaced with a question mark. Obviously, I'm trying to undo that. The way i had planned on doing that is by search for strings that begin with ? and end with two consecutive punctuation marks, the latter of which also being ? (i.e., .? or !? or ,? or ??).
The search I was using was:
I was then going to do subsequent searches with different punctuation marks in between the brackets. Unfortunately, I never got that far because the above search was being too greedy.
example:
Code:
<p>?Or the television reports??</p>
<p>?No.?</p>
for the above text, the search matches "??</p> <p>?No.?" instead of just "?No.?"
How do I do this right? (PS - using "<" as a marker won't work because not all dialogue finishes at the end of a paragraph ---> eg. <p>"Let's get out of here!" he yelled.</p>)
|
Did you remember to escape things?
(\!\?|\?\?|\.\?) just add all the escaped combinations you are looking for, separated by a pipe