I forgot about Regexp. I haven't had much experience with them and doing this actually made me realize what they are for now. I'm having a problem pulling the words it find out of the array though. This is the code I have. So what am I doing wrong?
$frog = "yanky doodle";
if (eregi("yanky", $frog, $regs)) {
echo "$regs[1]";
}
else
{
echo "this did not work";
}