[Solved] Trying to parse string from a website that gives device status with a value at the end


_, device, value, _ = "html code>Q8:0;html code".split(/[>:;]/)

2

solved Trying to parse string from a website that gives device status with a value at the end