It appears that the current quest log is not parsed correctly for all quests. Unfortunately my limited regex understanding is currently throwing up it's hands at : private static final Pattern BODY_PATTERN = Pattern.compile( "(?<=<b>)(.*?[^<>]*?)</b><br>(.*?)(?=<p>$|<p><b>)", Pattern.DOTALL );
The issue can be seen on a regex pattern matcher on the web, where it appears that several quests aren't recognised on my quest log (namely Ooh, I Think I Smell a Bat., Make War, Not... Oh, Wait, What's Up, Doc? and Lady Spookyraven's Babies). They all work fine on the completed quest tabs. The source I'm looking at is :
Can any regex experts suggest a new regex for the body which will pick up all the quests correctly ?
The issue can be seen on a regex pattern matcher on the web, where it appears that several quests aren't recognised on my quest log (namely Ooh, I Think I Smell a Bat., Make War, Not... Oh, Wait, What's Up, Doc? and Lady Spookyraven's Babies). They all work fine on the completed quest tabs. The source I'm looking at is :
Code:
<body>
<centeR><table width=95% cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Your Quest Log</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><Center>[current quests] [<a href="questlog.php?which=2">completed quests</a>] [<a href="questlog.php?which=3">other accomplishments</a>] [<a href="questlog.php?which=4">notes</a>] [<a href="questlog.php?which=5">hobo code binder</a>] [<a href="questlog.php?which=6">Monster Manuel</a>]</center><p><center><b>Current Quests:</b></center><b>Council Quests:</b><blockquote><b>Ooh, I Think I Smell a Bat.</b><br> Defeat the Boss Bat, in the <a class=nounder target=mainpane href=bathole.php><b>Bat Hole</b></a>.<p><b>Trial By Friar</b><br> Talk to the Deep Fat Friars in the <a class=nounder target=mainpane href=woods.php><b>Distant Woods</b></a>.<p><b>The Goblin Who Wouldn't Be King</b><br> Find your way inside Cobb's Knob, in the <b><a class=nounder target=mainpane href="plains.php">Nearby Plains</a></b>.<p><b>Am I My Trapper's Keeper?</b><br> <a class=nounder target=mainpane href=place.php?whichplace=mclargehuge><b>The Trapper</b></a> wants:<br> * 3 wedges of goat cheese (you have 2)<br> * 3 chunks of linoleum ore<br><p><b>There Can Be Only One Topping</b><br> Find a way across the <a class=nounder target=mainpane href=place.php?whichplace=orc_chasm><b>Orc Chasm</b></a>.<p><b>Cyrptic Emanations</b><br> Get rid of the evil in <b><a class=nounder target=mainpane href="crypt.php">The Cyrpt</a></b>.<p><b><a class=nounder target=mainpane href="inv_use.php?whichitem=4964&pwd=d39c349911dc5cc9326854ad2bef17b3">Evilometer:</a> 200</b><p><b>Make War, Not... Oh, Wait</b><br>You've managed to get the war between the hippies and frat boys started, and now the Council wants you to finish it.
<p>
You can aid the war effort by fighting on the Battlefield, or you can help out some of the other residents of the island in the hopes that they'll aid the side you're fighting for.<p></blockquote><p><b>Other Quests:</b><blockquote><b>What's Up, Doc?</b><br> <a class=nounder target=mainpane href=place.php?whichplace=town_market><b>Doc Galaktik</b> needs some medicinal herbs:<br> * Swindleblossoms from the <a class=nounder target=mainpane href=cobbsknob.php><b>Cobb's Knob Harem</b></a> (0/3)<br> * Fraudwort from ninjas in <a class=nounder target=mainpane href=friars.php><b>Hey Deze</b></a> (0/3)<br> * Shysterweed from a <a class=nounder target=mainpane href=place.php?whichplace=plains><b>a graveyard</b></a> (0/3)<p><b>Driven Crazy</b><br> Find the Untinker's screwdriver at Degrassi Knoll, on the <a class=nounder target=mainpane href=plains.php><b>Nearby Plains</b></a>.<p><b>Lady Spookyraven's Babies</b><br> Gather up Lady Spookyraven's babies on the <a class=nounder target=mainpane href=place.php?whichplace=manor3><b>third floor</b></a> of <a class=nounder target=mainpane href=place.php?whichplace=manor1><b>Spookyraven Manor</b></a>.<p></blockquote><p><p><center><a href="campground.php">Back to your Campsite</a></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center></body>
Can any regex experts suggest a new regex for the body which will pick up all the quests correctly ?