RE: [PHP] [RegExp] extracting anchors

2003-03-13 Thread Boaz Yahav
: Wednesday, March 12, 2003 11:08 PM To: [EMAIL PROTECTED] Subject: [PHP] [RegExp] extracting anchors Hello, I want to extract the "name"-attribute of all anchors out of an HTML-source-code which don't have the "href"-attribute. I can use this code to get the "na

[PHP] [RegExp] extracting anchors

2003-03-12 Thread Jens Lehmann
Hello, I want to extract the "name"-attribute of all anchors out of an HTML-source-code which don't have the "href"-attribute. I can use this code to get the "name"-attribute: preg_match_all('/]*?)name=[ \'\"](.*?)[ \'\"](.*?)>/is',$src,$ar); The name-attributes are now in $ar[2]. How can I ex