note 66726 deleted from function.preg-replace by tularis
| From: | tularis@php.net | Date: | Sun, 18 Jun 2006 13:13:39 +0000 |
| Subject: | note 66726 deleted from function.preg-replace by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-114322@lists.php.net to get a copy of this message | ||
Note Submitter:
----
few usefull tags i made, just sharing them feel free to use :)
btw adding /ims to the end seems to make it so the tags can have multiple lines
//[b] BOLD Tags
$html = preg_replace( "/\[b\](.*?)\[\/b\]/ims", "<b>\\1</b>",
$html);
//[i] ITALICS Tags
$html = preg_replace( "/\[i\](.*?)\[\/i\]/ims", "<i>\\1</i>",
$html);
//[s] STRIKETHROUGH Tags
$html = preg_replace( "/\[s\](.*?)\[\/s\]/ims", "<s>\\1</s>",
$html);
//[u] UNDERLINE Tags
$html = preg_replace( "/\[u\](.*?)\[\/u\]/ims", "<u>\\1</u>",
$html);