Home > Device Messaging > Parsing

Regular Expression Value Selectors

To allow for maximum flexibility in extracting values from your message, we have provided a mechanism that allows you to extract a value from a string.

Consider the following scenario, where your initial selector will find the following string:

Temperature = 32.0 F

The value that you want to extract as the temperature is simply 32.0

If you use a Regular Expression similar to:

^Temperature\s?=\s?([\d\.]{1,5})\s?F$

The value that will be used is 32.0

An excellent tool to test your Regular Expressions is Regular Expressions 101. Also, make sure you take advantage of our Verifiers to ensure that the parsing process works as you expect.