Thread: preg
View Single Post
Old 03-17-2008, 04:24 PM   #2 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

For the preg_* functions, the pattern needs to be surrounded by delimiters. Usually the delimiter is a forward slash: something like /^foo/

The PCRE Pattern Syntax page on the PHP manual should be more than enough to get you sorted.
Salathe is offline  
Reply With Quote