tweak regex for IP checking

removed start and end line on regex