The article would be helped by using a full regex for ipv4 addresses - the one it uses would match invalid numbers (999.999.999.5 for instance), but the proper one is more complex (and would probably make for a better example as a result)
Also I think there's something wrong with this blog's formatting, it appears to be replacing underscores with italics even within code samples.