How to query for headers by regexp?