java regex matching ip address and port number as captured groups
Posted
by lisak
on Stack Overflow
See other posts from Stack Overflow
or by lisak
Published on 2010-05-25T21:41:05Z
Indexed on
2010/05/25
21:51 UTC
Read the original article
Hit count: 287
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: assfasfas>192.168.1.1:8080192.168.222.43:8286
I need 192.168.1.1 and 8080 to be captured groups
Thank you
© Stack Overflow or respective owner