Simple Preg Match
Posted: Sat May 28, 2011 5:19 pm
I want to create a pattern which will allow this: "What is [anything here]?"
Valid example: What is an orange?
This is the pattern I have so far but it doesn't seem to be working:
"/^what is *\?$/i"
Could you please tell me what I'm doing wrong? Cheers.
Valid example: What is an orange?
This is the pattern I have so far but it doesn't seem to be working:
"/^what is *\?$/i"
Could you please tell me what I'm doing wrong? Cheers.