Grep integer with certain number of digits (e.g. 3)

grep '[0-9]\{3\}'
# or
grep -E '[0-9]{3}'
# or
grep -P '\d{3}'
click the source code to copy