Page 1 of 1

Error in the error logs..

Posted: Fri Aug 20, 2004 6:23 pm
by turbo2ltr
I was looking at my sites error logs and found two recurring errors.

PHP Warning: No ending delimiter '/' found in /blah/search.php on line 102
PHP Warning: No ending delimiter '/' found in /blah/search.php on line 74

Code: Select all

//Line 102:

if (!preg_match ("/[^a-zA-Z0-9 +:-()]", $val))

// line 74


if (!preg_match ("/[^a-zA-Z0-9 +:-]", $val))
Unfortunatly regx are not something I'm good at. These two lines were probably hacked from an example until they worked the way I wanted them to...

So whats wrong with them?

Posted: Fri Aug 20, 2004 9:19 pm
by m3mn0n
Do as the error asks and add a / to the end of the regex.

Post the result after that...