Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
find phone number in string
#1
I select numbers on a web page and paste them into a softphone.. alot of times there will be unwanted characters in the selected number like

abc: 800-123-1234 ext123

I use:
str a.getsel
but this gets the whole selection including the abc in front and ext at the end of the phone number

how do i get just the FIRST 10 numbers and disregard everything else including "new line"
I want to get the first 10 characters that match "1234567890" in the string

all i want is the 10 digit phone number to paste into my softphone.. otherwise it wont call.

thanks, nate


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)