View Single Post
Old 09-01-2012, 04:00 PM   #68
miquele
Connoisseur
miquele ought to be getting tired of karma fortunes by now.miquele ought to be getting tired of karma fortunes by now.miquele ought to be getting tired of karma fortunes by now.miquele ought to be getting tired of karma fortunes by now.miquele ought to be getting tired of karma fortunes by now.miquele ought to be getting tired of karma fortunes by now.miquele ought to be getting tired of karma fortunes by now.miquele ought to be getting tired of karma fortunes by now.miquele ought to be getting tired of karma fortunes by now.miquele ought to be getting tired of karma fortunes by now.miquele ought to be getting tired of karma fortunes by now.
 
miquele's Avatar
 
Posts: 74
Karma: 498122
Join Date: May 2010
Location: Europe
Device: Bookeen Cybook Gen3, Kindle 3, Galaxy SIII, Kindle PW
tricky regex

hello,

line spacing is off at conversion, so I would like to remove
<br>\n
(read blank, bracket, newline)
but only if in front of the blank is not a dot, otherwise it should remain.
The RegEx identifying the corrcet places is
[a-z] <br>\n
but now, obviously, one letter too much is replaced. Can I get back this character through a variable to be put into the Replacement Text line?
Otherwise, how can I tell Calibre to replace only once the is no dot in front of the matching RegEx?
Thanks for your help,
miquele
miquele is offline   Reply With Quote