note 107491 added to function.preg-replace

From: Date: Mon, 13 Feb 2012 15:48:20 +0000
Subject: note 107491 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-186103@lists.php.net to get a copy of this message
Please see Example #4 Strip whitespace. This works as designed, but if you are using Windows, it may not work as expected. The potential "gotcha" is the CR/LF line endings. On a Unix system, where there is only a single character line ending, that regex pattern will preserve line endings. On Windows, it may strip line endings. ---- Server IP: 64.71.164.2 Probable Submitter: 98.169.50.31 ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- https://master.php.net/note/edit/107491 Del: integrated -- https://master.php.net/note/delete/107491/integrated Del: useless -- https://master.php.net/note/delete/107491/useless Del: bad code -- https://master.php.net/note/delete/107491/bad+code Del: spam -- https://master.php.net/note/delete/107491/spam Del: non-english -- https://master.php.net/note/delete/107491/non-english Del: in docs -- https://master.php.net/note/delete/107491/in+docs Del: other reasons-- https://master.php.net/note/delete/107491 Reject -- https://master.php.net/note/reject/107491 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186103) next »