Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
findrx
#5
Gintaras Wrote:Yes, if price always be with ",".

This is more universal:
Macro Macro1473
Code:
Copy      Help
str ChargeA

ChargeA = "(Charge A | 937,000.00)"
;ChargeA = "(Charge A | 93.00)"

if(findrx(ChargeA "(\d+,)*\d+\.\d+" 0 2 _s)>=0) out _s


would it be possible to remove all exsisting "," and the ".00" in the same line ? in the code above it would out 937000

i think it needs another replacerx line and thats no problem so far but i cant get the removing of ".00" to work so my best result is 937000.00

thank you


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)