note 63695 added to function.preg-replace

From: Date: Tue, 28 Mar 2006 15:40:45 +0000
Subject: note 63695 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-106852@lists.php.net to get a copy of this message
Something innovative for a change ;-) For a news system, I have a special format for links: "Go to the [Blender3D Homepage|http://www.blender3d.org] for more Details" To get this into a link, use: $new = preg_replace('/\[(.*?)\|(.*?)\]/', '<a href="$2" target="_blank">$1</a>', $new); ---- Server IP: 217.160.72.57 Probable Submitter: 82.139.254.221 ---- 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/63695 Del: integrated -- http://master.php.net/note/delete/63695/integrated Del: useless -- http://master.php.net/note/delete/63695/useless Del: bad code -- http://master.php.net/note/delete/63695/bad+code Del: spam -- http://master.php.net/note/delete/63695/spam Del: non-english -- http://master.php.net/note/delete/63695/non-english Del: in docs -- http://master.php.net/note/delete/63695/in+docs Del: other reasons-- http://master.php.net/note/delete/63695 Reject -- http://master.php.net/note/reject/63695 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#106852) next »