I have some records as such, in a file:
A 20 year old programmer
A 52 year old politician
A 12 year old practitioner
Many many more of these...
I want to match only lines that contain a number less than 20
. I have tried:
^[0-20]{2}$
But it works for only numbers 0-2
. How should I construct a regular expression to match numbers < 20
? For instance, it should match:
A 12 year old practitioner
But not
A 20 year old programmer
A 52 year old politician