Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
change numeric value
#4
There maybe a better way of doing it but this works.

Code:
Copy      Help
int i
str tmp b s subject="Bob10"

findrx(subject "\d+" 0 0 s);;gets # from string
findrx(subject "[^0-9]+" 0 0 b);;gets word from string
i=val(s);i+1 ;; adds one
tmp.formata("%s%i" b i)
out tmp


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)