Please advice what wrong in my syntax , and why the following regular expression doesn’t work
this example was tested under bash shell:
echo 12.212.12.198 | grep "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]| [1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$"
- Not get any output
The same about all IP’s as 192.9.200.12 , 172.18.12.34 , etc …