I have strings like this:
<img width="1" height="1" alt="" src="http://row.bc.yahoo.com.link">
What regex should I have to write in C# to extract src portion of it ? (end result should be “http://row.bc.yahoo.com.link” )
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are dealing with HTML you’re better of using a HTML parser like the HTML Agility Pack.
Sample:
Update:
If you are already using the HTML agility pack and have selected all the
imgtags from the document using XPath you need to iterate them and access thesrcattribute: