I need to use C# Regex to do a link rewrite for html pages and I need to replace the links enclosed with quotes (") with my own ones. Say for example, I need to replace the following
"slashdot.org/index.rss"
into
"MY_OWN_LINK"
However, the actual link can be of the form
"//slashdot.org/index.rss" or
"/slashdot.org/index.rss"
where there can be other values that comes before "slashdot.org/index.rss" but after the quote (") which I don't care about.
To summarize, as long as the link ends with "slashdot.org/index.rss", I would want to replace the entire link with "MY_OWN_LINK".
How can I use Regex.Replace for the above?