add re pattern for exercises