Regular Expressions 101

Match IP Address with Port Number

Open Workspace
  • PCRE2 (PHP)
  • Match
0

Regular Expression

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

Description

Submitted by Anonymous