note 96320 rejected from function.preg-replace by thiago
| From: | thiago@php.net | Date: | Mon, 22 Feb 2010 02:37:33 +0000 |
| Subject: | note 96320 rejected from function.preg-replace by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-166236@lists.php.net to get a copy of this message | ||
Note Submitter: samdjstevens at googlemail dot com
----
Hi,
I am having a bit of trouble finding the right regex to use for a project.
I need to match literally anything, from nothing to whatever. "(.*?)" works fine, but it
doesn't match when line breaks (\n) are present. I can't remove the \n's from the
string, so is there a regex that will match anything including line breaks?
Cheers