Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(\w+-??\.?\w+?\s+?)(IN\s+?[ACNAME]{1,5}\s+)(\d{1,})(\s+)(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$
/

Description

move TTL field from route53 zone export from right to left to "IN A/CNAME"

Submitted by shawn.puschnig@medialets.com - 9 years ago