filtering a phone #

Results 1 to 2 of 2

Thread: filtering a phone #

  1. #1
    jeff nelson Guest

    Default filtering a phone #

    Does anybody know how to quickly filter out a phone # string leaving only the numbers and removing everything else like commas, dashes, periods, Parentheses, etc...<BR><BR>I&#039;m pretty familiar with using strings, but can&#039;t seem to figure this one out. Thanks

  2. #2
    Jason Guest

    Default RE: filtering a phone #

    I would just use the Replace() function and look for those characters you wanted to strip out. However, it would be too much to filter out every single letter and punctuation mark, so I would do a tad of form validation first. Use like an IsNumeric() function or something. Just a quick thought. I think actually has an article on doing just this in their strings section.

Posting Permissions

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