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? Link to comment https://forums.phpfreaks.com/topic/160877-solved-warning-preg_match-functionpreg-match-no-ending-delimiter/ 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)){ Link to comment https://forums.phpfreaks.com/topic/160877-solved-warning-preg_match-functionpreg-match-no-ending-delimiter/#findComment-849014 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 Link to comment https://forums.phpfreaks.com/topic/160877-solved-warning-preg_match-functionpreg-match-no-ending-delimiter/#findComment-849630 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.