Match multiple delimiters containg backslashes php

!!GlirebedLed

New Member
I have a php code that needs to be matched for any of the following string using preg_match using this code\[code\]if(preg_match('/(image/gif)|(image/jpg)|(image/jpeg)/',$between)){ echo "Match Found";}elseecho "Match Not Found";\[/code\]but i get this error\[code\]Warning: preg_match() [function.preg-match]: Unknown modifier 'g' in C:\xampp\htdocs\project\extension.php on line 38\[/code\]Any help will be appreciated....I googled alot but couldn't find solution...
 
Back
Top