Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?:^\s* (?<name>[\w-]+\.[\w-.]*?)\.\s* (?<ttl>\d+)\s* (?<class>\w*)\s* (?<type>\w*) (?(?<=SOA) \s*(?<rdata> (?<mname>\S*)\.\s* (?<rname>\S*)\.\s* (?<serial>\d*)\s* (?<refresh>\d*)\s* (?<retry>\d*)\s* (?<expire>\d*)\s* (?<minimum>\d*)\s* )\s*$ | \s*(?<rdata>\S*)\s*$ ) )
/
gmxJ

Description

no description available

Submitted by anonymous - 6 years ago