I have the following HTML within a multi-line text field.
href="/Pages/33/33998.aspx">(Answer 33998)
I need to remove the folder structure from the URL. In my Regex I can find the match but I cant seem to get the replacement to work. Anyone have any suggestions?
Heres the start of my regex:
<a href=\"\/Pages\/\d{1,}\/\d{3,}[.]aspx"></a>
So I have this:
Regex.Replace(Convert.ToString(properties.AfterProperties["Description"]), @"<a href='/Pages\/\d{1,}\/\d{3,}[.]aspx'>", "TEST", RegexOptions.IgnoreCase);