[Solved] Regex – Matching two numbers before a certain string [closed]


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.*$

solved Regex – Matching two numbers before a certain string [closed]