Modify pattern expression of snippet message for maintainancability