Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(\d).*(?=\s*;[s|S]erial)
/

Description

Captures the serial number of a traditional zone file.

Submitted by Eric Osterberg - 9 years ago