in reply to Riddle with regex

Since this was from last semester, I'm sure you'll be happy to post the code you submitted before anyone here posts how they'd do it, right?

Otherwise, this just sounds like someone wanting their homework done for them ;)