Extract numbers with Regex

I’m trying to extract numbers out of a string using Regex. For example, with
‘PT4M13S’, I want to extract the 4 and the 13 separately. The format will always be the same, PT [NUMBER] M [NUMBER] S and the numbers will always be 2 digits.
Can anyone help me find the correct Regex pattern to use for this situation?

It will be hard with a Regex.

Easier to use

“truncated to” 2 and “truncated from end to” 4
“truncated to” 4 and “truncated from end to” 1

1 Like

Thank you! I’m sure this will be much easier to use.

This topic was automatically closed after 70 days. New replies are no longer allowed.