regex and newline
| From: | Michael | Date: | Fri, 02 May 2003 03:06:06 +0000 |
| Subject: | regex and newline | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-146047@lists.php.net to get a copy of this message | ||
Hi
$text = "[list]\n";
$text = preg_replace("/\[list\]\n?/i","<ul>", $text);
What I want $text to look like is this afterwards:
$text="<ul>"
---
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.474 / Virus Database: 272 - Release Date: 18/04/03