[ad_1]
Here’s a regex that just extracts the first number in the string:
^\D*(\d+).*$
If the number must be in front of min, then you can write it as:
^\D*(\d+)min.*$
[ad_2]
solved Regex – Matching two numbers before a certain string [closed]
[ad_1]
Here’s a regex that just extracts the first number in the string:
^\D*(\d+).*$
If the number must be in front of min, then you can write it as:
^\D*(\d+)min.*$
[ad_2]
solved Regex – Matching two numbers before a certain string [closed]