remove superfluous ".*"s from regex