note 61330 deleted from function.preg-replace by colder
| From: | colder@php.net | Date: | Mon, 18 Jun 2007 19:57:38 +0000 |
| Subject: | note 61330 deleted from function.preg-replace by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-127681@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Uh-oh. When I looked at the text in the preview, I had to double the number of backslashes to make
it look right.
I'll try again with my original text:
$full_text = preg_replace('/\[p=(\d+)\]/e',
"\"<a href=\\\"./test.php?person=$1\\\">\"
.get_name($1).\"</a>\"",
$short_text);
I hope that it comes out correctly this time :-)