I'm trying to extract two strings from this string using Regular Expressions -
'<img src="http://images.efollett.com/books/978/047/012/9780470129296.gif" width="80" height="100" alt="Organic Chemistry I (as Second Language)" />'
I want the URL after src and the text after alt (so Organic Chemistry I (as Second Language)) and the url)
I've tried ('<img src=(\w+)" width')
, ('<img src="(\w+)"')
and ('src="(\w+)"\swidth')
, for the url and all return empty.
I've also tried ('alt="(\w+)"')
for the name and again, no luck.
Can anyone help?