note 66726 added to function.preg-replace

From: Date: Sat, 27 May 2006 16:07:03 +0000
Subject: note 66726 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-112373@lists.php.net to get a copy of this message
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); ---- Server IP: 84.18.202.180 Probable Submitter: 86.135.165.224 ---- X-Spam-Status: No, hits=3.3 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HTML_MESSAGE autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- http://master.php.net/note/edit/66726 Del: integrated -- http://master.php.net/note/delete/66726/integrated Del: useless -- http://master.php.net/note/delete/66726/useless Del: bad code -- http://master.php.net/note/delete/66726/bad+code Del: spam -- http://master.php.net/note/delete/66726/spam Del: non-english -- http://master.php.net/note/delete/66726/non-english Del: in docs -- http://master.php.net/note/delete/66726/in+docs Del: other reasons-- http://master.php.net/note/delete/66726 Reject -- http://master.php.net/note/reject/66726 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#112373) next »