note 69200 added to function.preg-replace

From: Date: Sat, 26 Aug 2006 19:05:11 +0000
Subject: note 69200 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-116369@lists.php.net to get a copy of this message
can any help me in writing a reqular experession. i need to change the url not starting with http $string='<a href="http://www.msn.com">d</a> </a> <a href="test.html">fdf' i need to change the href=" to href="new but not the href="http:// thanks in advance ---- Server IP: 66.163.161.117 Probable Submitter: 124.29.217.118 ---- X-Spam-Status: No, hits=4.0 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HTML_20_30,HTML_MESSAGE autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- https://master.php.net/note/edit/69200 Del: integrated -- https://master.php.net/note/delete/69200/integrated Del: useless -- https://master.php.net/note/delete/69200/useless Del: bad code -- https://master.php.net/note/delete/69200/bad+code Del: spam -- https://master.php.net/note/delete/69200/spam Del: non-english -- https://master.php.net/note/delete/69200/non-english Del: in docs -- https://master.php.net/note/delete/69200/in+docs Del: other reasons-- https://master.php.net/note/delete/69200 Reject -- https://master.php.net/note/reject/69200 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116369) next »