Follow-up fix for bug#5852 - Fixed wrong regex and added functionality also to AgentTicketEmail.