Marcus Som

Marcus Som

  • NA
  • 1
  • 0

Parsing and modifiying html-pages with C#?

Jan 24 2007 7:29 AM
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 = "Let's React

  • DB Talks
  • Jumpstart Blockchain
  • Interviews.help