Hi Everyone,
I have a slight problem with my Regular Expression.
I want to replace certain text in my anchor tag. For example if I have the following tag:
<A HREF = '\\server\test\me.jpg'>Hello</A>
I want to replace test with live, such as:
<A HREF = '\\server\live\me.jpg'>Hello</A>
I'm using vb.net and so far I have come up with
LiteralDocumentation.Text = Regex.Replace(strText, "<a.*test*", "Live", RegexOptions.IgnoreCase)
The above statement gives me:
Live\me.jpg'>Hello</A>
So I'm missing the beginning part <A HREF = '\\server\. Any ideas what my regular expression pattern needs to be, so far I have <a.*test*
Thanks