note 107491 deleted from function.preg-replace by cmb
| From: | cmb@php.net | Date: | Sun, 24 Nov 2019 09:04:50 +0000 |
| Subject: | note 107491 deleted from function.preg-replace by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213231@lists.php.net to get a copy of this message | ||
Note Submitter: Ray dot Paseur at SometimesUsesGmail dot com
----
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.