fix regex and support special chars in publishimagemultipagetifftests