matching pattern optimised according to book title