Tips and tricks for .NET using ASP and VB code.

Case insensitive text replacement.

        Dim ReplacementString As String = "Text"
        ReplacementString = Strings.Replace(ReplacementString, "Text to replace", "Replacement text", 1, -1, CompareMethod.Text))

No comments:

Post a Comment

Search This Blog