• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 347
  • Last Modified:

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:

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.
1 Solution
matches any number of \x22 characters, optionally followed by any character, followed by src
but your example string  contains " border="1"
Did you mean to say
azyet24Author Commented:
You nailed it.  Such a simple mistake.  Thank you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now