Thread: Regex examples
View Single Post
Old 02-25-2014, 04:40 AM   #295
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,583
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by roger64 View Post
The problem is that these quotes may include from one to four paragraphs. I would like to neatly separate the quote from the bodytext for readability purposes [...] I can do that manually... or set up a regex. This is the question.
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.
Doitsu is offline   Reply With Quote