note 112300 added to regexp.reference.assertions

From: Date: Wed, 29 May 2013 21:02:04 +0000
Subject: note 112300 added to regexp.reference.assertions
Groups: php.notes 
Request: Send a blank email to php-notes+get-194987@lists.php.net to get a copy of this message
removes // comments but NOT the stuff after http:// $sBlob = preg_replace("@\s*(?<!:)//.*?$@m",'',$sBlob); Although, as Sean Greenslade pointed out, it will fail in this EDGE case since the comments are within quotes, but who does that anyways? "Lol slashes // are // fun"; ---- Server IP: 69.147.83.199 Probable Submitter: 75.147.180.77 ---- Manual Page -- http://php.net/manual/en/regexp.reference.assertions.php Edit -- https://master.php.net/note/edit/112300 Del: integrated -- https://master.php.net/note/delete/112300/integrated Del: useless -- https://master.php.net/note/delete/112300/useless Del: bad code -- https://master.php.net/note/delete/112300/bad+code Del: spam -- https://master.php.net/note/delete/112300/spam Del: non-english -- https://master.php.net/note/delete/112300/non-english Del: in docs -- https://master.php.net/note/delete/112300/in+docs Del: other reasons-- https://master.php.net/note/delete/112300 Reject -- https://master.php.net/note/reject/112300 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194987) next »