Thread: Regex examples
View Single Post
Old 02-25-2014, 04:47 AM   #296
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Thanks for your interest

Quote:
Originally Posted by Doitsu View Post
Do the paragraphs with quotes start with guillemets or are otherwise formally different from the paragraphs before or after them (e.g., do they all start with the same word/tag)?

If not, it'd would be extremely difficult to use a regex, because in order to use a regex the text to be found needs to follow a predictable pattern.
They can begin with absolutely anything including [...]

But the predictable pattern is that there can be from one to four successive
Code:
<p class="quote">
to enclose within a div.
These "quote" paragraphs make them stand out from the other bodytext paragraphs where I use only
Code:
<p>
.

Last edited by roger64; 02-25-2014 at 04:53 AM.
roger64 is offline   Reply With Quote