message matcher: prepare pattern in constructor