m/ \0{2} # two leading nulls MSrc # signal of a new message .{16} # 16 bytes of binary data ([^\0]+?) # what i want, mail headers and message /msx