I suggest making matcher a local (deleted at the end) and then pass it through to filterlines().