Friends,

How can i translate this to VB.NET ? :

private string processPropertiesTag(Match m)
{
        string pattern = @"\s*[^=\s]*=""[^""]*""";
        string newHtml = Regex.Replace(m.ToString(), pattern, new
MatchEvaluator(processPageProperty));
        return newHtml;
}

I have tried this BUT i have this error :

Private Function processPropertiesTag(ByVal m As Match) As String
        Dim pattern As String =  "\s*[^=\s]*=""[^""]*"""
         Dim newHtml As String = Regex.Replace(m.ToString(), pattern, New
MatchEvaluator(processPageProperty))
         Return newHtml
End Function


error:
- 'system.text.RegularExpressions.MatchEvaluator' is a delegate type.
Delegate construction permits only a single AddressOf expression as an
argumenst list.
.......
Dim newHtml As String = Regex.Replace(m.ToString(), pattern, New
MatchEvaluator(processPageProperty))


Can anyone help me on that ?

Thanks !

Best regards,
Ricardo Figueira

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to