Regular Expressions 101

Match leading number of port and replace it with another

Open Workspace
  • PCRE2 (PHP)
  • Match
-1

Regular Expression

/
100(\d{2})
/
gm

Description

the point is to help replace leading number with another number to prevent some services uses same port

Submitted by Anonymous