I am trying to find a good way to capture a number that is at no more than N characters away from a given string.
For example, if the String is "age" and N=4 have to find
"Age 5" => 5
"My age is 10 and I my name is John" => 10
"My age is almost 5 and I my name is Mary" => null
In the last case, the number is separated more than 4 characters from "age".