[PHP] Re: [RegExp] extracting anchors

2003-03-13 Thread Jens Lehmann
Jome wrote: Jens Lehmann wrote: 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('/a([^]*?)name=[ \'\](.*?)[ \'\](.*?)/is',$src,$ar); The name-attributes are

[PHP] Re: [RegExp] extracting anchors

2003-03-12 Thread Jome
Jens Lehmann wrote: 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('/a([^]*?)name=[ \'\](.*?)[ \'\](.*?)/is',$src,$ar); The name-attributes are now in