hi all,

I am working in a windows application. i have a text say for eg,

<img src="http://static.ibnlive.com/pix/sitepix/06_2007/kumaraswamy_cm90.jpg"
alt="BACKTRACKING? Kumaraswamy says he never said he would step down on October 3."
title="BACKTRACKING? Kumaraswamy says he never said he would step down on October 3"
border="0" width="90" height="62" align="left" hspace="5&"/>
Kumaraswamy has denied reports that he would step down on October 3

i need to remove the img tag entirely and display only this part.
Kumaraswamy has denied reports that he would step down on October 3

i tried using the following regular expression to extract img tag.but its not working

Regex r=new Regex("<img[^<>]+>")

can anybody help out with this?

Thanks in advance.:)

Regards

Exelio

Member Avatar for iamthwee

Works for me, although I've not tested it exclusively. If you change it to <img([^>]+)> . Make any diff?

hi,

Ofcourse that makes the difference, thanks a lot.its working now.

Thanks again

Regards

Exelio

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.