thanks for replying. However I found this worked better for me
myregex = New Regex("<img .*?(>|(/>|(</img>))",
RegexOptions.IgnoreCase Or
RegexOptions.ExplicitCapture)
It does not gobble up other tags fooling the <img .....on the same line.
it also supposed to take care of xml also
Credit is due to Dave Sexton for helping arriving at the above expression
"Göran Andersson" <gu***@guffa.comwrote in message
news:e5**************@TK2MSFTNGP06.phx.gbl...
Why not simply "<img[^>]>"?
GS wrote:
what is a good regex expression for remove html <img ....tag?
I tried
"<img [/:.a-z =0-9\""_;&]*\->", RegexOptions.IgnoreCase)
but it is not quite working
thank you for your time