use correct messagePattern when regex is involved