Regular Expressions 101

Sponsors

Library entries

0
pcre2

IP address with port

Match ip address with port
Submitted by PARNKOT - 9 months ago
0
pcre2

Get HTML attribute

Get HTML attribute with /" inside
Submitted by anonymous - 9 months ago
0
pcre2

股票代码

aa
Submitted by vv - 9 months ago
0
pcre2

ipv4 match

ipv4 match
Submitted by anonymous - 9 months ago
0
pcre2

scss class matching

scss class matching
Submitted by lucas - 9 months ago
0
pcre2

Note Body HTML

Match all valid HTML tags
Submitted by anonymous - 9 months ago
0
pcre2

Barcode Regex

Barcode Regex
Submitted by anonymous - 9 months ago

IPv4 non zero first and last octet

Vote

0

Regular Expression
pcre2

/
^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|0?[1-9][0-9]?|0?[0-9]?[1-9])(.(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])){2}.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|0?[1-9][0-9]?|0?[0-9]?[1-9])$
/
gm

Description

Loading markdown...
Submitted by John Cutburth - a year ago