napa182 commented on a Page, Rock Paper Scissors Game  -  Nov 05, 2008

you could just use $istok

if (!$istok(rock paper scissors,$2,32)) {

or for the regex this will work

if (!$regex($2,/^(rock|paper|scissors)$/i)) {
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.