note 35040 added to function.ereg

From: Date: Sun, 17 Aug 2003 03:25:52 +0000
Subject: note 35040 added to function.ereg
Groups: php.notes 
Request: Send a blank email to php-notes+get-54524@lists.php.net to get a copy of this message
How would I do this in PHP? Its a special bit of perl code I written to weed out URL's out of sites with referrals.. I'm basically trying to do away with porn through elimination of money making incentives.. Basically I'm cheating the sleeze bags here.. I take the input, strip the URL out of any URL lines, then I dump the output, with the changes made.. Anyone like to help me write up Page filters for this? while (<STDIN>) { #if ($_ =~ /["']http[^=]+=(http[^?&]+)[^"']+["']/) { print $1; } $_ =~ s/["']http.+=(http[^?&]+)[^"']+["']/'$1'/gi; print $_; } PS- I heard Penthouse went out of business, I think we can put the whole porn industry out of business, I'm thinking about constructing such a site specifically for this purpose.. Anyone who wants to join me, just put KILLPORNNOW in your webpage. I'll find you.. ---- Manual Page -- http://www.php.net/manual/en/function.ereg.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35040 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35040&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35040&report=yes

« previous php.notes (#54524) next »