What is the best method to replace my urls on Render.
I can have several structures of my urls in my aspx pages, depend of my folder structure like:
example1 - NavigateUrl="../Folder/something"
example2 - NavigateUrl="./Folder/something"
example3 - NavigateUrl="Folder/something"
Then i check my whole html on Render and make some Regex.Replace
html = Regex.Replace(html, "src=\"([^\"]+)Folder/([^\"]+)\"", Function, RegexOptions.IgnoreCase);
Then in my function i need to make any of above urls like
New/Folder/anything
Here is my function
private static string FixUrlUploads(Match match)
{
string what = match.ToString();}
string what can have values as example1, example2, example3 or (anything)Folder/anything
So you want to convert “(anything)Folder/anything” to “New/Folder/anything”?, where this occurs in a
src="..."? Or do you meanNavigateUrl="..."as per your examples?This replaces
src="(anything)Folder/(anything2)"withsrc="New/(anything2)".