Thread: Regex examples
View Single Post
Old 10-25-2012, 12:58 AM   #157
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 1,450
Karma: 846401
Join Date: Jan 2009
Device: KoboGlo
Now that Sigil has a nice Search Editor, I can add some more regex.
I would like to set up this one:

It's about superscript text:

The text me mes lle lles er e o placed within a sup tag and followed by a normal space should instead be followed by a  

Say <sup>me</sup>(normal space) should be replaced by
<sup>me</sup>&nbsp;

(me, lle are superscript short for M(adame), M(ademoiselle)...

I hope I have been clear enough...
roger64 is offline   Reply With Quote