azyet24
asked on
Regular Expression Help
In a HTML file that contains many <img tags I need to match up only the one that has id="Master_Image6"
I have this regex but it isn't working and I can't figure out why:
<img.*id=\x22Master_Image6 \x22*.?src =\x22(.*?) \x22
Example string that it should have found:
<img id="Master_Image6" border="1" src="http://domain.com/images/uploads/10093899.jpg" width="130" border="0" />
From this I want the value from src.
I have this regex but it isn't working and I can't figure out why:
<img.*id=\x22Master_Image6
Example string that it should have found:
<img id="Master_Image6" border="1" src="http://domain.com/images/uploads/10093899.jpg" width="130" border="0" />
From this I want the value from src.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER