I have an html page that has many elements (tables, divs e.t.c) I get them as string and I want to extract this format <img src="(whatever char).jpg" (whatever char)> from the string, I tried regexp tutorials but couldn’t do anything as it was to complicated to me. And I need only the first occurrence, thanks.
I have an html page that has many elements (tables, divs e.t.c) I get
Share
I don’t think regex is the right way to go about this:
If you were using jQuery, the code would be much simpler: