#!/bin/bashecho '192.168.1.1 foobar' | grep -E '([0-9]{1,3}\.?){4}'
Standard input is empty
192.168.1.1 foobar
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!