note 46005 added to reference.pcre.pattern.syntax
| From: | krt dot uni dot cc at osu1 dot php dot net | Date: | Sun, 26 Sep 2004 06:37:44 +0000 |
| Subject: | note 46005 added to reference.pcre.pattern.syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-77356@lists.php.net to get a copy of this message | ||
"The documentation is wrong. You need to use '///' to match a backslash not
'//'. '//' is actually a reserved meta-character... or meta-phrase... or
something."
Your talking about \\ and yes, you do need 3 or 4 backslashes for a literal \
And \n isn't a backreference, you have to use \\n
Well thats the only way I get it to work
----
Manual Page -- http://www.php.net/manual/en/reference.pcre.pattern.syntax.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46005
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46005&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46005&report=yes
Search -- http://master.php.net/manage/user-notes.php