Results 1 to 3 of 3

Thread: [RESOLVED] remove letters

Hybrid View

  1. #1
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724

    Re: remove letters

    Code:
    string s = "12445-65432 abc, 98767-45364 th, 56749-23198";
    string result = Regex.Replace(s, @"\s?[a-zA-Z]\s?", string.Empty);
    For a breakdown, have a read through on http://www.regular-expressions.info/reference.html. Brilliant author, very good read

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2007
    Posts
    694

    Re: remove letters

    Thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width