If I compare it to the regex (below) the difference is significant, there unexpected "N" and "P" parameters in there. Should it match? I mean, is there a reason to leave these out?
My guess is the P and B values in the first example are buffer information regarding the internal command buffer and the planner buffer for the motion planner. N is the line number that was acknowledged. Those are optional and only even available in recent firmware builds (enhanced ok or something like that it was called I think, at least in Marlin - no idea about other firmware variants). I wasn't aware that they might show up in temperature responses, but it does make sense in a way.
T is the currently selected hotend, T0 the first, T1 the second and so on, B is the bed. @: and B@: denote the current power level of the heaters I think.
I so far have never seen the P: notation. No idea what that is supposed to mean. Also no idea about A: in this context.
In any case, to filter out those lines that contain the P and B values before the temperature output, I'd try the following regex:
Do you want me to put in a PR for an upgraded regex? Also yours was incorrect, it was missing the B entry (maybe you accidentally pasted in the default version?). I'm also fussing with the colon location in this version:
The idea behind the .* bits in mine was to capture anything like N, P, B and so on that went before a T:, T\d: or B: - but I admittedly also didn't test it so might have gone a bit over board there
I´m sorry if this is not the right place, but I´d like to know if its possible to filter temperature messages from the terminal as default. Every time I disconnect and reconnect my printer and goes to terminal, I get tons of temperature messages covering other info I want to look at.