Java String Get Substring By Regex For Ip