Problem with decoding received text

Avatar
  • updated

Hi,

For received text I need help how to configure boolean parser

OUT29 General alarm:on
OUT29 General alarm:off

For TrueText I set on and for FalseText I set off. I use .NET Regex Tester - Regex Storm for testing.

For ^OUT29.*\b(on|off)\b$ nothing happen.

Image 5541

For \b(on|off)\b boolean parser set value, but problem is that this work for any text with on or off  inside. I need this converter for OUT29.

Image 5540

Regards,

Kruno

Avatar
Fabien Fuster

If I got it right, you want to catch only "on" or "off" . Try following regex pattern:

OUT29 General alarm:(on|off)

Avatar
krunoslav kanjuh

Hi Fabien,

This not work, but I found. Must be  (?<=^OUT29 .*)(on|off)

The first bracket contains what the text must start with, and everything up to on or off is removed.


Thank you.