I want to find and capture two digits Only if there are no other numbers in the string, My inputs:
foo 12 ✅
foo 12 bar ✅
12 baz ✅
9 foo 12 ❌
foo 12 baz 2 ❌
12 2 ❌
I tried this pattern
preg_match('`(?<=\d)\b\d\d\b(?=\d)`', $input);
But not working
