Question:You are writing an application to update absolute hyperlinks in HTML files. You have loaded the HTML file into a string named s. Which of the following code samples best replaces http:// with https://, regardless of whether the user types the URL in uppercase or lowercase? - VB.NET
 

A s = Regex.Replace(s, "http://", "https://") 

B s = Regex.Replace(s, "https://", "http://") 

C s = Regex.Replace(s, "http://", "https://", RegexOptions.IgnoreCase) 

D s = Regex.Replace(s, "https://", "http://", RegexOptions.IgnoreCase) 

+ Answer
+ Report
Total Preview: 1769

Copyright © 2024. Powered by Intellect Software Ltd