Read the link you gave me and went with ["ABDEFGHIJKLMNOPQRSTUVWXYZ].
It removed the majority of entries though there were still a couple chapters detected even though they should have been removed by the above filter.
Example:
Detected chapter: “Good,”
Detected chapter: After several more m
Detected chapter: “Did you want
Removed Good and Did but not After. Only reason I can think is it having something to do with where After is in relation to Good. I think it's maybe within the same tag or a few tags down. Seems to be a similiar pattern with other entries that weren't removed.
Ending up playing around for a while and gave up. Then thought about doing it this way;
//h: p[re:test(.,'Chapter 1|Chapter 2|Chapter 3|Chapter 4|Chapter 5|Chapter 6|Chapter 7|Chapter 8|Chapter 9|Chapter 10|Chapter 11|Chapter 12|Chapter 13|Chapter 14|Chapter 15|Chapter 16|Chapter 17|Chapter 18|Chapter 19|Chapter 20|Chapter 21|Chapter 22|Chapter 23|Chapter 24|Chapter 25|Chapter 26|Chapter 27|Chapter 28|Chapter 29|Chapter 30|Chapter 31|Chapter 32|Chapter 33|Chapter 34|Chapter 35|Chapter 36|Chapter 37|Chapter 38', "i")]
And it's worked perfectly. Bit of a pain but as the other way didn't want to work it was the only way I could think.
Is there some kind of limit in python that, once a match has been found, it skips onto the next tag? Or is there anyway of stopping it doing that? Tried to find the info on the link you gave me but had no luck.
Atleast I figured out a way for now though.
Thanks again for your help.
Last edited by Killian; 08-02-2009 at 07:38 AM.
Reason: :p instead of : p
|