RE: [PHP] hyperlink parser - a bit new view :)

From: Date: Sun, 18 Aug 2002 20:56:45 +0000
Subject: RE: [PHP] hyperlink parser - a bit new view :)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113154@lists.php.net to get a copy of this message
Look up Regular Expressions. Basically they allow you to search out matches in strings such as <a> and any variable amount of letters between the open and closed tags. So you'd need to read in the entire file into a string, chop out all the pesky page returns ('\n') and then run your function using regular expressions inside of a loop of some sort. Check out these links: http://www.php.net/manual/en/ref.regex.php http://www.phpbuilder.com/columns/dario19990616.php3 ~ Matthew -----Original Message----- From: Roman [mailto:outbound@centrum.cz] Sent: Sunday, August 18, 2002 4:20 PM To: php-general@lists.php.net Subject: RE: [PHP] hyperlink parser - a bit new view :) I think there is no message about the same idea. I would need to parse html file and get all within href="" or href=''. So I don't want to get all texts which could be links, but only content of href variable within <a> tag. Is there any easy way ? I have read hundreds of messages in this list today but without any possitive idea found :( Roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#113154) next »