note 108096 added to regexp.reference.escape
| From: | mike at eastghost dot com | Date: | Wed, 28 Mar 2012 07:25:10 +0000 |
| Subject: | note 108096 added to regexp.reference.escape | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186887@lists.php.net to get a copy of this message | ||
"line break" is ill-defined:
-- Windows uses CR+LF (\r\n)
-- Linux LF (\n)
-- OSX CR (\r)
Little-known special character:
\R in preg_* matches all three.
preg_match( '/^\R$/', "match\nany\\n\rline\r\nending\r" ); // match any line
endings
----
Server IP: 208.69.120.55
Probable Submitter: 70.91.82.193
----
Manual Page -- http://www.php.net/manual/en/regexp.reference.escape.php
Edit -- https://master.php.net/note/edit/108096
Del: integrated -- https://master.php.net/note/delete/108096/integrated
Del: useless -- https://master.php.net/note/delete/108096/useless
Del: bad code -- https://master.php.net/note/delete/108096/bad+code
Del: spam -- https://master.php.net/note/delete/108096/spam
Del: non-english -- https://master.php.net/note/delete/108096/non-english
Del: in docs -- https://master.php.net/note/delete/108096/in+docs
Del: other reasons-- https://master.php.net/note/delete/108096
Reject -- https://master.php.net/note/reject/108096
Search -- https://master.php.net/manage/user-notes.php