Hello im trying to parse the last value of the recursive var but i dont know how to select it.
Parsed variable | Name: debit | Value: [600, 600, 600, 600, 600, 300, 300, 300, 300, 600, 600, 600, 600, 600, 300, 300, 300, 300, 150, 150, 150, 150, 150, 150, 150]
im this case how i can select the last “150” value of the parse variable above?
thanks !!
Create another parse block after this one and use Regex:
BLOCK:Parse
input = @debit
leftDelim = ", "
rightDelim = "]"
pattern = "(.*),(.*)]"
outputFormat = "[2]"
MODE:Regex
=> VAR @parseOutput
ENDBLOCK
Here is a test i did:
1 Like
Parse using L/R
On the Left put , and on the Right put ]
Thanks mate this worked like charm !
1 Like
This would parse that:
600, 600, 600, 600, 300, 300, 300, 300, 600, 600, 600, 600, 600, 300, 300, 300, 300, 150, 150, 150, 150, 150, 150, 150