how to read the string and get the src of image in whole string
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
Suppose I am having html and in that images tags are used I want to read that tags and get the src i.e file name until the image tag is finished.
Why would you want to read your HTML tags through code? Are you trying screen scrapping by doing HTML parsing? In that case you have to identify the starting of an image tag using
<img
then look for the nearestsrc
tag property and then look for quotes["]
Is there any other way, yes you have to define a good regular expression to parse for patterns but that would be too much work, but definitely possible and efficient.