Learning Actions Regular Expression Match

I am trying to learn the regular express match. How do I cast the returned match to an int. The expression I am using isn't working. I am currently using the following expression:

int(outputs('Regular_Expression_Match')?['body/Matches'])

Hello @smithme,

"Regular expression match" returns a JSON. Like this

So, you need to parse the JSON and then use int.

However, who do you need to Int the matches? You use Match to make a title of an item, probably you can use use the match as it is?

Best regards,
Petr
Plumsail team

1 Like