📜  以 grep 结尾的字符串 - R 编程语言代码示例

📅  最后修改于: 2022-03-11 14:51:59.249000             🧑  作者: Mango

代码示例1
#START is the pattern you want to grep at the BEGINNING of a string
#END is the pattern you want to grep at the END of a string
#Grep string that start with START and end with END (both grep have to occur)
grep("^START.*\\.END$", filenames, ignore.case = T)
#Grep a string that starts with START
grep("^START", filenames)
#Grep a string that ends with END
gerep("END$", filenames)