Regular Expressions 101

Sponsors

Library entries

IPv4 + TCP-Port

Vote

1

Regular Expression
java

"
^((?:(?:\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(?:\.(?!\:)|)){4})\:(?!0)(\d{1,4}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$
"
g

Description

Loading markdown...
Submitted by SIMULATAN - 6 months ago