Link to home
Start Free TrialLog in
Avatar of azyet24
azyet24Flag for United States of America

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.
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of azyet24

ASKER

You nailed it.  Such a simple mistake.  Thank you.