Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

preg_match... 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Argh..this is doing my head in! I have;

$return = preg_match("viewforum\.php","http\:\/\/
But this is returning;

Warning: Delimiter must not be alphanumeric or backslash in /usr/local/psa/home/vhosts/ace-installer.com/httpdocs/php/modules/Forums/index.php on line 68

This is REALLY getting on my nerves. I have escaped every possible charachter, yet it still won't work!" What gives?

Cheers

Andy
 
The "preg_" family of functions use perl-compatible regular expressions, and so require that search expressions use perl's delimiters, which is "/". For more information:
Try your search expression as "/viewforum\.php/" ______________________________________________________________________
TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top