There are 4 capture groups: 1: domain name 2: TTL (how long until the record expires) 3: TYPE (the type of DNS record) 4: CONTENT (the content of the DNS record. This depends on the type)
Make sure every line ends with a \n, otherwise the regex will not find the last entry! This regex should be capable of reading every type of DNS record, including NSEC3- and RRSIG-type records.