in reply to URL filtering in Perl

First find the format specification for that file, them rules.