if($data!~m/table\s?of\s?contents?|\sindex\spart\s(?:1|I)/i){