I have an HTML file that contains the following:
<img src="MATCH1" bla="blabla">
<something:else bla="blabla" bla="bla"><something:else2 something="something">
<something image="MATCH2" bla="abc">
Now I need a regular expression to match both MATCH1 and MATCH2
HTML also contains several parts like this, so it can be in HTML 1, 2, 3 times x times.
When I speak:
<img\s*src="(.*?)".*?<something\s*image="(.*?)"
This is not appropriate. What am I missing here?
Thanks in advance!
source
share