Grabbing the href attribute of an A element

lyletango

New Member
Trying to find the links on a page. my regex is:\[code\]/<a\s[^>]*href=http://stackoverflow.com/questions/3820666/(/"\'??)([^\"\' >]*?)[^>]*>(.*)<\/a>/\[/code\]but seems to fail at\[code\]<a title="this" href="http://stackoverflow.com/questions/3820666/that">what?</a>\[/code\]how would I change my regex to deal with href not placed first in the a tag?thanks!
 
Back
Top