I need to extract a string with only single or double digit number in them. my file (test) looks like
test1correct
test12something
test123wrong
In the above example, i want to grep only for
test1correct and test12something
I tried this
grep “test[0-9]{1,2}” test but it gives me all the 3 lines.
use:
grep "test[0-9]{1,2}[^0-9]“