[TriLUG] Subject: [hopefully] quickie help with a regex

wejii wejii at bellsouth.net
Tue Aug 10 12:46:49 EDT 2010


This is what I got -

   preg_match_all('/\'.*\'/i', ' ', $result);

I'm not sure about phrases like -
  
   'I think it's going to rain'

which matches the entire line. 

I think it's sloppy programming to allow this, but my regex skills are rusty and I haven't found the "correct" syntax.

Walt




More information about the TriLUG mailing list