preg_match error in Zend Studio for Eclipse
Posted: Mon Jun 29, 2009 9:47 am
Zend Studio for Eclipse is giving me this error:
Multiple annotations found at this line:
- bad-escape : Bad escape sequence: \/, did you
mean \\/?
- bad-escape : Bad escape sequence: \/, did you
mean \\/?
This is my code:
if(preg_match("/\/(.*)\/public/i", $this->_request->__get('REQUEST_URI'), $matches))
It works fine, and if I add another backslash, it still works fine. Why is it giving me this error?
Multiple annotations found at this line:
- bad-escape : Bad escape sequence: \/, did you
mean \\/?
- bad-escape : Bad escape sequence: \/, did you
mean \\/?
This is my code:
if(preg_match("/\/(.*)\/public/i", $this->_request->__get('REQUEST_URI'), $matches))
It works fine, and if I add another backslash, it still works fine. Why is it giving me this error?