Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Regular expressions - problem to replace multyline html tag

Status
Not open for further replies.

Plato2

Programmer
Dec 6, 2002
192
US
I'm using regular expressions to replace a multyline hyperlink:
result_str = Regex.Replace(result_str, "<a[^>]*>(.*?)</a>", "", RegexOptions.Multiline)

This expression replaces all hiperlinks except for multyline hyperlink
The following hyperlink was not replaced
<a href="site2.dtw/disp?lotnbr=10825334&pix=C">
<img
src="/photo_i.jpg" name="full2"
></a>
How can I replace this kind of hyperlink with empty string?

Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top