But when i try out your last edit it doesn't work, I can send IP addresses to chat in any way.
I see that you deleted the second part of regex, so I'm guessing the problem is in that part :/
But anyway it works edited like in the code above, I can't stress enough how thankful I am..!
Appreciate it!