RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

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: The rating for this expression. Jyri Turkia
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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.


Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials