I have an external application that monitors the temperatures of the processor and GPU ...
I use Lua with an extension for aliens to capture these values ββ(via GetWindowText ) and perform pattern matching on these values, effectively extracting the temperature digits from the string, which by default appears as something like a CPU 67.875 Β°C ...
But maybe I have the wrong idea about how patterns work in LUA (since they don't look like regular expressions)?
I use the pattern [%d]+[.%d+]* , which should match any number from 0 to 100.0, right?
Oddly enough, I get an incredibly strange conclusion when the values ββreach 56.5 degrees (see Link).
Why is this happening?
And how can I extract the correct floating point values ββ(as a string) in the range from 0 to 100 in the format XYY.ZZZ , where X is optional, Y is optional, as well . is optional if Z exists?
source share