I have an xml file which I try to retrieve some information using linq to xml. There is a tag in the xml file that is like this
<description>
<img src='http://www.sport.gr//files/Image/2012/May/14/802.jpg'>Τραγική ήταν η παρουσία της Αστον Βίλα στη φετινή Πρέμιερ Λιγκ και.....
</description>
What I want to do is to retrieve the link inside src attribute using a regular expression. Any idea how I can achieve this? I cannot edit the format of xml because it comes from a web request.
Use this pattern
Extract the “src” group if there’s a match.