Need help, Please convert from vb.net to C#
I try to convert the code below to c# , but i can not.
Please help .
JC
-----------------------------------------------------------------
Public Shared Function Cleanx() As String
Dim Contents As String
Contents = "ss aaa xxxx "
Dim RegExp As Regex
RegExp = New Regex("", RegexOptions.IgnoreCase)
Contents = RegExp.Replace(Contents, "<(select|option|script|style|title)(.*?)>((.|\n)*?)(select|option|script|style|title)>", " ", RegexOptions.IgnoreCase)
Contents = RegExp.Replace(Contents, "&(nbsp|quot|copy);", "")
Contents = RegExp.Replace(Contents, "<[^>]*>", "")
Contents = RegExp.Replace(Contents, "<([\s\S])+?>", " ", RegexOptions.IgnoreCase).Replace(" ", " ")
Contents = RegExp.Replace(Contents, "<[^<>]+>", " ", RegexOptions.IgnoreCase)
' Contents = RegExp.Replace("(<(\w+)[^>]*?>(.*?)\1>", "$1")
Contents = RegExp.Replace(Contents, "\W", " ")
'Trace.Warn("File Contents", Contents)
Return (Contents)
End Function

send2manivannanRank #8,059 · 229 reputationPosted Jun 7, 2004, 1:56 AM EDT
pseudobill200464 reputationPosted Jun 7, 2004, 6:43 AM EDT
jitti5 reputationPosted Jun 7, 2004, 5:58 PM EDT
pseudobill200464 reputationPosted Jun 7, 2004, 6:46 PM EDT
tb_anywhere29 reputationPosted Jun 23, 2004, 11:06 PM EDT