Regular Expression to grep IP addresses numbers

Grep -o '10.14\.[0-9]*\.[0-9]*' file.txt

Use -b to catch before line eg -b 3
Or -a for after