chrisparr21681
Programmer
My DNS zone files are update by a perl script and I am trying to parse an "IN TXT" record for adding SPF entries, but I want to make sure that the SPF record conforms to the RFC 1464 standard.
I am under the impression that the basic standard is that any ASCII character is allowed, but the record must contain an =, there must be 1+ character(s) before and after the =, and that whitespace must be escaped with a ` -- well, im not TOO sure, but you can always check in the RFC - there are a couple of other rules, but the RFC is very verbose.
The problem is I am very bad with regular expressions and am certain to make a complete hash of it.
Any takers?
I am under the impression that the basic standard is that any ASCII character is allowed, but the record must contain an =, there must be 1+ character(s) before and after the =, and that whitespace must be escaped with a ` -- well, im not TOO sure, but you can always check in the RFC - there are a couple of other rules, but the RFC is very verbose.
The problem is I am very bad with regular expressions and am certain to make a complete hash of it.
Any takers?