stringr::str_detect
默认是区分大小写的,但有时想要忽略,怎么办?
str_extract_all(sents, regex(namesToExtract, ignore_case=TRUE))
或
str_detect(string, regex(pattern, ignore_case = T))
str_detect(string, fixed(pattern, ignore_case = T))
from stringr - R: How to ignore case when using str_detect? - StackOverflow
网友评论