Regular Expressions 101

Community Patterns

0

C/F temp unit

PCRE2 (PHP >=7.3)
me
Submitted by anonymous - a year ago
0

belcorp

PCRE2 (PHP >=7.3)
test
Submitted by anonymous - a year ago
0

Php

PCRE2 (PHP >=7.3)
Php
Submitted by Nickname - a year ago
0

find between

PCRE (PHP <7.3)
find between
Submitted by anonymous - a year ago

RFC-1034- and RFC-2181-compliant FQDN extractor

1

Regular Expression
PCRE (PHP <7.3)

/
\|\K(?=.{1,253}\|)(?!.*--.*)(?P<fqdn>(?:(?!-)(?![0-9])[a-zA-Z0-9-]{1,63}(?<!-)\.){1,}(?:(?!-)[a-zA-Z0-9-]{1,63}(?<!-)))\|
/
gm

Description

Loading markdown...
Submitted by 0jag - 6 years ago