in reply to Return value from positive look behind
Use parentheses to capture it. If you don't want to capture the minutes, don't use capturing parentheses:
/(\d{1,2})(?=\s(?:mins|minutes))/ # ^ ^ ~~ # | | \ # \ capture don't capture
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Return value from positive look behind
by bestresearch2 (Novice) on Nov 11, 2020 at 17:11 UTC | |
|
Re^2: Return value from positive look behind
by bestresearch2 (Novice) on Nov 11, 2020 at 17:15 UTC | |
by choroba (Cardinal) on Nov 11, 2020 at 17:17 UTC | |
by GrandFather (Saint) on Nov 11, 2020 at 20:28 UTC |