which(1) with a regex