I've been pulling my hair (what I have left) with this one... I get expect as I should, but I don't get whole number in result variable.
for expect, I receive : {"id":1, "result":["on", "", "100"]} where the 100 can be any number from 1 to 100. So 1 to 3 digits.
I suppose this regex should work:
expect: .*("result").*(?<sstatus>on|off).*(?<slevel>[0-9]{1,3}).*
but it doesn't. I get "ok" in 1st variable (sstatus) but I get only one digit in slevel variable even though {1,3} should mean it is 1 to 3 digits????
Please help! :)