0
Answer

Parsing and modifiying html-pages with C#?

Marcus Som

Marcus Som

18y
2k
1
Hi all, I have to do change the server urls of web ressources like images to local urls. Example: to: Where the servername, webname and listname are variable and may change. What ist the best way to replace specific Textpattern in large texts? Regular Expressions? XML-Parser and XSLT? If Regex will be prefered, what will be the correct replace-pattern? Here's the full task: // Sourcetext emample: string sourceText = @"....

"; sourceText+= @"
"; sourceText += @"..."; // String to find is: (I Know the Server and the web, but nothing else) string toFind = " Magnus Mårtensson

+1
View all
Forum Statistics