Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get rid of numeric values
#1
Hey, im wondering if i have a str and get a spot on a window....is it possible to get all the numbers out of it

example:

str s
s.getwintext(id(5 hDlg))

then if s has any numbers in it for example...

s = "Found 5 Numbers"

change that to...

Found Numbers

Thanks!
#2
Use function replacerx.
#3
kk would i have to do

s.replacerx("1")
s.replacerx("2")
s.replacerx("3")

all the way to 0-9?

or is there a easier way?
#4
Any help here?
#5
finally had a chance to get to this.

Do you mean something like this?

Code:
Copy      Help
_s="Test 3 t1es2t 3"

_i=_s.replacerx("\d" "")
out "Found %i numbers" _i
out _s
An old blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 2 Guest(s)