note 78254 added to function.eregi-replace

From: Date: Thu, 04 Oct 2007 14:23:05 +0000
Subject: note 78254 added to function.eregi-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-131080@lists.php.net to get a copy of this message
This is a function for transform the URL into user message to link: function url2link($string) { return eregi_replace('(<a [^<]*href=["|\']?([^ "\']*)["|\']?[^>]*>([^<]*)</a>)','<a href="\\2">look link</a>', $string); } url2link transform for example: http://www.hhgroups.com to <a href='http://www.hhgroups.com'>look link</a> ---- Server IP: 130.206.1.5 Probable Submitter: 83.54.54.241 ---- Manual Page -- http://www.php.net/manual/en/function.eregi-replace.php Edit -- https://master.php.net/note/edit/78254 Del: integrated -- https://master.php.net/note/delete/78254/integrated Del: useless -- https://master.php.net/note/delete/78254/useless Del: bad code -- https://master.php.net/note/delete/78254/bad+code Del: spam -- https://master.php.net/note/delete/78254/spam Del: non-english -- https://master.php.net/note/delete/78254/non-english Del: in docs -- https://master.php.net/note/delete/78254/in+docs Del: other reasons-- https://master.php.net/note/delete/78254 Reject -- https://master.php.net/note/reject/78254 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131080) next »