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:[EMAIL PROTECTED]] Sent: Sunday, August 18, 2002 4:20 PM To: [EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php