Thread: Combine lines
View Single Post
Old 02-19-2014, 07:04 AM   #2
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,734
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
This quick and dirty regex should do the trick:

Find:([\p{Greek},'’][</ib>]*)</p>\s+<p>([<ib>]*[\p{Greek},'’])
Replace:\1 \2

However, I'd probably remove the comma in the second part of the regex since paragraphs are not likely to start with a comma.
Doitsu is offline   Reply With Quote