Page 1 of 1

REGEX expression Help

Posted: Tue Apr 02, 2019 12:23 pm
by Cheesegeezer
Hi,

Can someone please help me in getting decimal place numbers from regex expression.

Using Vera 2 way feedback.

I have tried this - Outside Temp\".*temperature=\"(\d+\.?\d*)\" but still get single digit returned.

Thanks in advance

Re: REGEX expression Help

Posted: Thu Apr 04, 2019 9:51 am
by Cheesegeezer
I have found the solution to this. In the 2 way feedback, if you send the captured data to a number (i.e. for gauge use) Demopad will round the number to a whole integer. However if you send the captured data directly to a label, then the full number is displayed. So if you want decimal and gauges for the same number you will need to set up 2 feedback values and send them to a number and a label.

This is using the standard format. e.g. Rain\".*value=\"(.+?)\"