note 11853 deleted from function.preg-replace by sniper
| From: | sniper@php.net | Date: | Tue, 30 Sep 2003 12:28:15 +0000 |
| Subject: | note 11853 deleted from function.preg-replace by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57464@lists.php.net to get a copy of this message | ||
Note Submitter: ktohg@tritarget.com
----
Take Note this finction does not works as expected in perl (s/xxx/yyy/) This gunction is global and
single lined.
If your string has multiple lines this function ignores them. So ^ and $ are not line based but one
whole string based.
Also, it is always global (s///g) so you only need one iteration for this function. Putting it in a
while loop could cause serious problems.