Zokskorbinian Posted September 12, 2007 Share Posted September 12, 2007 Hi there, i'm just sitting on a LogfileAnalyser. I haven't done RegEx for a long time so i'm a bit out of practise. May you guys can find the error in the pattern... here is the pattern: /^([0-9]*)/(.*)/([a-zA-Z0-9\-_]*)/([a-zA-Z0-9\-_]*)/(IP_[0-9\.]*)/([0-9]*)/([0-9]*)/$/ The error given from php: Warning: preg_match() [function.preg-match]: Unknown modifier '(' in ... i hope you can help me Quote Link to comment Share on other sites More sharing options...
effigy Posted September 12, 2007 Share Posted September 12, 2007 A / is your delimiter, so any literal slashes within the pattern must be \/. I recommend changing your delimiter to a character that you're not using, % for example. Quote Link to comment Share on other sites More sharing options...
Zokskorbinian Posted September 12, 2007 Author Share Posted September 12, 2007 How can i change it? Or do you mean the / between the Fields? Quote Link to comment Share on other sites More sharing options...
effigy Posted September 12, 2007 Share Posted September 12, 2007 See this post for more on delimiters. Quote Link to comment Share on other sites More sharing options...
Zokskorbinian Posted September 12, 2007 Author Share Posted September 12, 2007 thank you for the fast answer i solved the problem by escapin' the / 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.