I've looked at some of the other IP matching that seems a lot more complex but several of them don't work, and I'm too simple minded to figure out why. Keep it simple, I've never had a problem matching IP addresses in logs with this one.