Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove any string from a variable
#4
Code:
Copy      Help
str s="Balance is (100,323.22)"
s.replacerx(".+?(\d+).*" "$1" 4)
out s

I tried the code above and returned 100 instead of 100,323.22. What am I doing wrong?

Thanks!
Denise


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)