Construct the blocks() regular expression just once.