Thread: Regex examples
View Single Post
Old 04-08-2012, 04:29 AM   #34
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: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Hi

I am not sure I am in the right thread, though it's about regex.
I have several regex that I use on my EPUB with Sigil on all html files.

For example:

F & R 1
<p class="let">([A-Z])
<p class="let"><span class="let1"><span class="let2">\1</span></span>

F & R 2
</span></span>((.[^ ]{0,20}[ ]){4})
</span></span><span class="smcpTypeV">\1</span>

I would like some advice about the simplest way to chain these two regexes (and presumably more). To play 1 and after 2.

Out of building a new program (which is way beyond my abilities), I have absolutely no idea how to do it, but it would be pretty useful for me.
roger64 is offline   Reply With Quote