How to get only Digits(Numbers) from string

Hello,

I am trying to get the Numbers from string, used Regex but not getting desire output. Can anyone please help.
My Input string will be like 14 days or 14 D and from this I want to get 14.

Regex pattern: \d+

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