Hi,
Thank you for responding. I tried your syntax and it is catching any paragraph that has quoted text properly formed or not. Is it possible you can further break down what your search strings do so that I can piece-meal learn and experiment? I read the item from stackoverflow but it was fuzzy to me.
To give more of an example of the text I am searching for, I have these examples:
<p class="some_class">"Phasellus in ante ac lectus," said Ceasar. Vestibulum neque nisi, dapibus quis, "Sed et magna eget orci.</p>
<p class="some_class">Proin non ex ex? Aliquam. Nam tristique scelerisque orci, et."</p>
or
<p class="some_class">"Sed eget nulla vel augue. Proin id metus sed mi.</p>
<p class="some_class">Sed sed eleifend ex! Phasellus justo lectus, tempor id mollis."</p>
Thanks for the help.
Quote:
Originally Posted by eschwartz
Find:
Code:
<p( [^<>]+)?>["“]((?!</p>).)*[^"”]</p>
Assumes the paragraph starts with a quote mark, accounts for smart or dumb quotes, matches optional attributes in the para tag, and matches tags in the paragraph assuming they aren't the para tag (see HERE for how).
This one finds text before the quotes too:
Code:
<p( [^<>]+)?>((?!</p>).)*["“]((?!</p>).)*[^"”]</p>
|