Quote:
Originally Posted by JSWolf
Why do you want to break up long paragraphs?
|
I used something similar to find very long quotations within paragraphs.
The author didn't use many blockquotes, so I looked for an opening quote + X many characters (400-800+) until a closing quote:
Search: “([^”<]{800,})”
Replace: </p> <blockquote><p>\1</p></blockquote> <p>
Then I was able to easily replace:
Code:
<p>Paragraph with “a super duper [...] long quotation” in the middle.</p>
with:
Code:
<p>Paragraph with</p>
<blockquote><p>a super duper [...] long quotation</p></blockquote>
<p>in the middle.</p>
(Certain Style Guides like the CMOS require quotations of X or more words/lines reformatted as blockquotes.)