Jump to content

Problem with preg_match


gee

Recommended Posts

Hi I am trying to convert to the preg_match function form the ereg funcntion, but can't get past this message:

 

Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash

 

return (ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']));
return (preg_match('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']));

 

Any help would be much apperciated.

 

Link to comment
https://forums.phpfreaks.com/topic/176337-problem-with-preg_match/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.