View Single Post
  #47   Spotlight this post!  
Unread 17-08-2010, 12:57
Chief Pride's Avatar
Chief Pride Chief Pride is offline
<3
AKA: James Kiefer
no team
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Kalamazoo, MI
Posts: 653
Chief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond repute
Re: Guess That Image! Round 4

/no-reveal

Everyone (rtfgnow ) seems to be pretty curious how to break the parser... I would actually say it's going be more difficult than you think. Just about the only way I can imagine that would (and usually does about once a day) break the parser is timing out at chiefdelphi.com or jameskiefer.com (because I have been too lazy to handle the exceptions).

Post parsing works on regular expressions. Here are some of the regular expressions in the parser:

Code:
<hr />W{6,}<div><strong>.*?</strong><br />&nbsp;</div>W{3,}<div>(.*?)</div>
Group 1 gets the name group 2 gets the post data from Print Thread

[/\\]pos (\d+),\W{0,1}(\d+)
Group 1 is x and group 2 is y

[/\\]answer "(?<answer>[^"]+)"|guess "(?<answer>[^"]+)"
Group 'answer' is the guess
To answer Alex C's question /pos "200,300" wouldn't be recognized as a command.

Last edited by Chief Pride : 17-08-2010 at 16:29.
Reply With Quote