note 96320 added to function.preg-replace
| From: | samdjstevens at googlemail dot com | Date: | Sat, 20 Feb 2010 12:21:23 +0000 |
| Subject: | note 96320 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-166206@lists.php.net to get a copy of this message | ||
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
----
Server IP: 69.147.83.197
Probable Submitter: 82.33.171.229
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- https://master.php.net/note/edit/96320
Del: integrated -- https://master.php.net/note/delete/96320/integrated
Del: useless -- https://master.php.net/note/delete/96320/useless
Del: bad code -- https://master.php.net/note/delete/96320/bad+code
Del: spam -- https://master.php.net/note/delete/96320/spam
Del: non-english -- https://master.php.net/note/delete/96320/non-english
Del: in docs -- https://master.php.net/note/delete/96320/in+docs
Del: other reasons-- https://master.php.net/note/delete/96320
Reject -- https://master.php.net/note/reject/96320
Search -- https://master.php.net/manage/user-notes.php