Regular Expressions 101

Community Patterns

0

chia plot

Golang
chia plot
Submitted by temple - 2 years ago
0

parse dpserver url

Golang
parse dpserver url
Submitted by qianshen - 2 years ago
0

Address

Golang
Address check
Submitted by anonymous - 2 years ago
0

character followed by number

Golang
ehehe
Submitted by arahsafari - 2 years ago

Match RFC1918 And Localhost

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?:(?:10\.\d{1,3}\.\d{1,3}\.\d{1,3}|172\.(?:(?:1[6-9])|(?:2[0-9])|(?:3[0-1]))\.\d{1,3}\.\d{1,3}|192\.168\.\d{1,3}\.\d{1,3}|127\.\d{1,3}\.\d{1,3}\.\d{1,3})(?::\d{1,5})?)$
/
gm

Description

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