I paid for the following piece of code but my coder coded it in Visual Basic. I tried using an online converter but none of them convert it properly.
Do you guys mind helping me convert the following piece of code to C#? Thanks:
Dim r As New System.Text.RegularExpressions.Regex("<input name=""authenticity_token"" type=""hidden"" value="".*"" />")
Dim matches As MatchCollection = r.Matches(theusercp)
For Each itemcode As Match In matches
autcode = UrlEncode((itemcode.Value.Split("""").GetValue(5)))
Next
Does this work properly for you?
Perhaps you’ll also have to write
var autcodeand/orServer.UrlEncode.