Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
Golang

`
^(?P<address>((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4})[:](?P<port>[1-9]{1,4}|[1-5][\d]{1,4}|6[0-5]{2}[0-3][0-5])$
`
gm

Description

Parse the typical connection string address like 123.123.123.123:123, supports the correct port and octet range

Submitted by anonymous - 3 months ago