I think you want to use ```match()``` rather than search given we want the header to be at the start of the file. While you're at it, ```g``` is a little cryptic as a variable name. I think it's a MatchObject so how about ```match``, ```matchobj``` or even ```m``` rather than ```g```?