REGEX expression Help

Forum to ask for any help
Post Reply
User avatar
Cheesegeezer
Posts: 47
Joined: Wed Mar 02, 2016 10:15 pm
Location: On an oil rig somewhere

REGEX expression Help

Post by Cheesegeezer » Tue Apr 02, 2019 12:23 pm

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

User avatar
Cheesegeezer
Posts: 47
Joined: Wed Mar 02, 2016 10:15 pm
Location: On an oil rig somewhere

Re: REGEX expression Help

Post by Cheesegeezer » Thu Apr 04, 2019 9:51 am

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=\"(.+?)\"

Post Reply