java regex matching ip address and port number as captured groups
- by lisak
Hi,
could please anybody tell me what is wrong with this regexp ?
((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))\\:([0-9]{2,5})
for matching this: assfasfas192.168.1.1:8080192.168.222.43:8286
I need 192.168.1.1 and 8080 to be captured groups
Thank you