This regular expression is only returning one match. (I'm looking to retrieve all image sources/locations (such as 'folder/image.png' contained in the src attribute in the img html tag).
Sample input string:
input = @"<p>here is an image</p><img attr=""ahwer"" src=""~/Images/logo.png"" st=""abc""/><p>some more text here</p>";
s += @"<p>test</p><img src=""a.jpg"" /><img src=""folder/image.png"" />"
Pattern
pattern = @"<img.*src=""([^""]*)"".*/>";
The MatchCollection count is always 1 (oddly, only the last match, in this case 'folder/image.png'. Whenever I change the pattern to simply 'img', it finds all three image tags. So, it's likely my regex pattern is incorrect. I'm no regex guru and would appreciate any help.