On Fri, 2013-02-08 at 13:26 -0600, Mike Grau wrote: > Hello folks. > > In 20_body_tests.cf (SA 3.3.2) there is this rule: > > body TRACKER_ID /^[a-z0-9]{6,24}[-_a-z0-9]{12,36}[a-z0-9{6,24}\s*\z/is > > What is the "\z" in the regex? > According to the O'Reilly Camel Book, "Programming Perl", \z matches the last character in a string but offers no additional help. Many DOS/Windows programs use ^z as the last character in a file, so I wonder if its there to make sure that it can match the last line in a non-MIME message body that doesn't have a newline as its final character and is more than 24 and less than 75 characters long. > This rule matches "000000000000000000000000000000000000". Is that as > intended? > It certainly looks like it, since the only non-alphanumeric character it will match are '-' and '_' provided they are more than 6 and less than 24 characters from each end of a line.
I'd certainly like to know what 'tracker' produces strings like that, though. Martin