Posted Thu, 24 Sep 2020 22:50:11 GMT by

I have a script that pulls all text from a specific tag in chrome and looks like:

Variable Calc = Calculated Exp Pay 40

is there a way to remove everything out except the numbers in the variable so it would just be 

Variable Calc = 40


This would range from 1 space for a 1$ up to about 500,000$


Thanks in advance for the help!

Posted Sat, 26 Sep 2020 06:07:55 GMT by

Hello Bradley,

Will the value always say "Calculated Exp Pay"? If so, you can do something like this:

<AMVARIABLE NAME="varFinal" />
<AMVARIABLE NAME="varTrim" VALUE="Calculated Exp Pay" />
<AMVARIABLE NAME="varText" VALUE="Variable Calc = Calculated Exp Pay 40" />
<AMTEXT ACTIVITY="replace" TEXT="%varText%" FIND="%varTrim%" REPLACE="" RESULTVARIABLE="varFinal" />

Posted Tue, 29 Sep 2020 00:32:01 GMT by

With some tweaking to the script I was able to implement this into mine it so it could pull and create the correct variable


Thank you for the help!

You must be signed in to post in this forum.