The simplest patterns match exact strings: x <- c("apple", "banana", "pear") str_extract(x, "an") #> [1] NA "an" NA.
確定! 回上一頁