Grandioso Posted November 2, 2010 Share Posted November 2, 2010 So I'm coding this application and I got stuck because preg_match just does'n wanna cooperate. First it didn't want to match my email, which is weird, because I used this regex before. Then started to debug it and I dumbed it down to preg_match('a','/a/'), but it would always give me this warning > Warning: preg_match(): Delimiter must not be alphanumeric or backslash and return false. What am I doing wrong ? Link to comment https://forums.phpfreaks.com/topic/217600-preg_match-gone-crazy/ Share on other sites More sharing options...
JAY6390 Posted November 2, 2010 Share Posted November 2, 2010 The regex is the FIRST parameter, the subject is the second. You have them the wrong way around Link to comment https://forums.phpfreaks.com/topic/217600-preg_match-gone-crazy/#findComment-1129670 Share on other sites More sharing options...
Grandioso Posted November 2, 2010 Author Share Posted November 2, 2010 No way... I'm such dumbass I would have sworn I got it right. Thanks, mate. Link to comment https://forums.phpfreaks.com/topic/217600-preg_match-gone-crazy/#findComment-1129694 Share on other sites More sharing options...
JAY6390 Posted November 2, 2010 Share Posted November 2, 2010 No problem Link to comment https://forums.phpfreaks.com/topic/217600-preg_match-gone-crazy/#findComment-1129696 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.