I'm using C# and want to capture IP:PORT
with Regex but how to make it not match if after PORT
the character is :
?
test it here
Pattern:
(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})[:\s]+(\d{2,5})(?!:)
Expexted result
1.22.234.255:8181:u:p // true, it should be false
1.22.234.255:80 // true
1.22.234.255 8080 // true
dddd1.22.234.255 80808 // true