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 ? Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
JAY6390 Posted November 2, 2010 Share Posted November 2, 2010 No problem 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.