GreenSmurf Posted June 4, 2009 Share Posted June 4, 2009 I am getting an error I have never had before. I searched a bit on the forums but the solutions people had seem not be quite the same. Warning: preg_match() [function.preg-match]: No ending delimiter $pattern = '\'/i'; if (preg_match($pattern,$group_name,$matches)){ Any suggestions? Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted June 4, 2009 Share Posted June 4, 2009 It just needs a delimiter. Simple fix. <?php $pattern = '#\'/i#'; if (preg_match($pattern,$group_name,$matches)){ Quote Link to comment Share on other sites More sharing options...
GreenSmurf Posted June 4, 2009 Author Share Posted June 4, 2009 I am sorry- I tried to read up on this delimiter business and all the manuals are a bit vague. What exactly is a delimiter or what is their function? Thank for the solution again. -B Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.