Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • It is giving me wrong result img tag start with gif image.like < img ....... 1 . gif >........<p>xyz</p> < img ........ 2 . jpg > Commented Jul 6, 2010 at 7:52
  • Thanks, its working ,Can you please tell me why above expression not including gif image tag which is the first one <img.if it start parsing from starting of string Commented Jul 6, 2010 at 8:32
  • [^>] stands for any character different from ">", while the wrong expression i gave you has "." which stands for any character. So, the wrong one matches the whole first img tag and the second: it "can't stop on the close tag". Commented Jul 6, 2010 at 8:52
  • The same mistake I was doing :( ,Any ways Thanks once again Commented Jul 6, 2010 at 9:59