Change IPv4 regexp to not allow integers larger than 255

This fixes github issue #9, thanks to Benny Hansson for the bug report.

Change-Id: I5befa14e1ac6b20d35863aeaeb7fc5d1d49bcd30