if theHtml = "" then Return ""
dim theRegex as new RegEx
theRegex.Options.TreatTargetAsOneLine = True
theRegex.Options.CaseSensitive = False
theRegex.Options.DotMatchAll = True
theRegex.Options.ReplaceAllMatches = True
dim SearchPattern as String = "url\((""(https?://[^""]+)"")\)"
theRegex.Options.Greedy = True
theHtml = theRegex.Replace(theHtml)
'dim m as RegExMatch = theRegex.Search(theHtml)
Protected Function FixHtml(theHtml as String) As String
if theHtml = "" then Return ""
Dim rx As New RegEx
rx.SearchPattern = "(?si-Um)url\((""(https?://[^""]+)"")\)"
rx.ReplacementPattern = "REPLACED_URL"
Dim rxOptions As RegExOptions = rx.Options
rxOptions.ReplaceAllMatches = True
Return rx.Replace( theHtml )
End Function