Regular Expressions 101

Community Patterns

Match IP Address with Port Number

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:\d{1,5}$
/
gm

Description

Submitted by anonymous - 25 days ago