# $Id$ # Matches the header part (?:Content- # start of content header (?:Type: (?>\s*) # rest of c/t header [\w-]+/[\w-]+ # content-type (any) |Disposition: (?>\s*) # content-disposition hdr attachment) # content-disposition ;(?>\s*) # ; space or newline (?:file)?name= # filename=/name= |begin (?>\s+) [0-7]{3,4} (?>\s+)) # begin octal-mode