Title |
Test
Find
Serial from BIND zone file's SOA
|
Expression |
(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}\.?\t*\s*){2}\(\r*\n*([0-9]{1,}) |
Description |
Gets serial from BIND zone file |
Matches |
dns1.server.com. dnsmaster.server.com. ( 2007102310 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 900 ) ; Minimum |
Non-Matches |
ädns1.server.com. dnsmaster.server.com. ( 2007102310 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 900 ) ; Minimum |
Author |
Rating:
Jyri Turkia
|
Source |
|
Your Rating |
|
Title: does not match(2)
Name: Erwin
Date: 1/30/2016 4:24:04 AM
Comment:
and worse, the regexp itself is also truncated. as shown it can only match until the part "2007102310", not beyond that
Title: does not match
Name: Erwin
Date: 1/30/2016 4:20:20 AM
Comment:
test data does not actually match; the test data contains a space where only CRs and LFs are expected.