Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Edit string to only contain numbers?
#1
Hi,

I'm looking to edit a string and remove any characters other than numbers, is there a simple way to do this?

I was going to use findreplace("a" ""), then do the same for other characters, but would like to know if there's an easier way to do it.

Thanks,

Paul.
#2
s.replacerx("\D")
#3
Cheers Gintaras!


Forum Jump:


Users browsing this thread: 1 Guest(s)