Regex help node-red

Hi. Trying to learn regex to use in a change node. I have succeeded to get the expression right but don't make it to work in node-red. Probably some easy misstake but I'm stuck.

Hi Nicas ,

I believe you need to enclose you regex expression between /<regex>/

So the expression should be :

$match(payload, /(ID):((\d?)\d)_(\d+)_(\d+)/)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.