11-14-2013, 01:36 AM
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
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
