We demonstrate a novel optical correlator for multiwavelength header recognition employing arrays of fibre Bragg gratings (FBGs). One FBG array is used to appropriately delay the entire different header wavelengths, and the others are used as a header bank, in which each one is designed with a different wavelength profile. The proof of principle of the optical correlator is experimentally demonstrated and verified for 4-bit header patterns at 2.27 Gb/s