Remove Characters with Regular Expressions

Latest post 09-25-2008 11:19 AM by Nick. 0 replies.
  • 09-25-2008 11:19 AM

    • Nick
    • Top 10 Contributor
    • Joined on 04-28-2008
    • Posts 27

    Remove Characters with Regular Expressions

    Dim AlphaOnly As String = System.Text.RegularExpressions.Regex.Replace(Phrase.ToUpper, "[^a-zA-Z]*", "")
            Dim NumbersOnly As String = System.Text.RegularExpressions.Regex.Replace("(1234)-add-45d", "[^0-9]*", "")

    Filed under:
Page 1 of 1 (1 items) | RSS
Forums to discuss Microsoft ASP.Net Development and SQL
Powered by Community Server (Non-Commercial Edition), by Telligent Systems