Regex transformation in profile

Hi all
I have a Nuki smartLock pro implemented by MQTT binding.
I’m trying to extrapolate the information from the “LockActionEvent topic” via REGEX where it is encoded in a comma separated list:
example: 2,172,0,0,1 or 6,2,0,0,1 or 6,2,2345,23456,2 etc etc
I would need to isolate each code between the commas individually.
I was able to extrapolate the first with this code:

.*(^(\d+){1}).*

and the last with this code:

.*((\d+){1}$).*	

but I can’t extrapolate the second, third and fourth.

can someone help me?

To get the first one: (\d+)
Second one: \d+,(\d+)
Third one: \d+,\d+,(\d+)

and so on.

… or

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