Thread: Regex examples
View Single Post
Old 03-04-2013, 04:48 AM   #194
mzmm
Groupie
mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.
 
mzmm's Avatar
 
Posts: 162
Karma: 86115
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
Quote:
Originally Posted by Ripplinger View Post
Is there a way to find the reverse situation, to find paragraphs where there is an ending quote but was no starting quote at the beginning of the paragraph?
think that's a bit more difficult. if there's no space between the <p> tags and the text you could use something like this

Code:
<p[^>]*>(?<!")(\w.+?")</p>
which finds a <p> followed by an alphanumeric character that is not preceded by a quotation mark. not the best solution, but for simple and consistent texts it could work.
mzmm is offline   Reply With Quote