View Single Post
Old 12-16-2013, 02:40 AM   #4
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
I usually do these things in stages
1. remove all the class="calibre2" xml:lang="EN-US" i.e. find this replace all with nothing. check that looks good & save, then
2. remove the spans : find <span>[(,*)]</span> & replace with \1
3. now do the joins

i'd skip step 2 if there were n=maybe other, valid spans, & write something that looked for a non-sentence end & remove the closing span tag, the line break, & the next opening p tag. for dealing with the line breaks I usually cust copy a chunk from code view, which has the line break embeded & put that into find, then tweak it

so I'd grab:
,</span></p>

<p class="MsoNormal1"><span>

put that in find, then edit the , to be ([a-z,])
and replace with \1 ( with a trailing space)
cybmole is offline   Reply With Quote