View Single Post
Old 12-09-2010, 10:12 AM   #534
MrsJoseph
Loves Ellipsis...
MrsJoseph ought to be getting tired of karma fortunes by now.MrsJoseph ought to be getting tired of karma fortunes by now.MrsJoseph ought to be getting tired of karma fortunes by now.MrsJoseph ought to be getting tired of karma fortunes by now.MrsJoseph ought to be getting tired of karma fortunes by now.MrsJoseph ought to be getting tired of karma fortunes by now.MrsJoseph ought to be getting tired of karma fortunes by now.MrsJoseph ought to be getting tired of karma fortunes by now.MrsJoseph ought to be getting tired of karma fortunes by now.MrsJoseph ought to be getting tired of karma fortunes by now.MrsJoseph ought to be getting tired of karma fortunes by now.
 
MrsJoseph's Avatar
 
Posts: 1,554
Karma: 7899232
Join Date: Dec 2010
Location: Washington, DC
Device: Kobo Wifi (broken), nook STR (returned), Kobo Touch, Sony T1
regular expressions

Thanks, Manichean! (Hey, my tutorial I found was written by you!)

Now, I'm not exactly sure what you meant by that so I'm assuming you are talking about the actual stuff inside the book file rather than the string of blank information that comes up before you click the wand (don't you love my very technical tech speak? lol). Sooo... I'll give you both.

The string in the space beside the wand (before clicking): (?i)(?<=<hr>)((\s*<a name=\d+></a>((<img.+?>)*<br>\s*)?\d+<br>\s*.*?\s*)|(\s*<a name=\d+></a>((<img.+?>)*<br>\s*)?.*?<br>\s*\d+))(?=<br>)

The header inside the file (after clicking the wand): <br>
5 <br>
<hr>
<A name=6></a><i>Delphine Dryden </i><br>

and

6 <br>
<hr>
<A name=7></a><i>When in Rio </i><br>
MrsJoseph is offline