Vector<-c("Consider criterion1, criterion2, criterion3, stop considering criterion1,criterion2, criterion3")
Vector2<-c("Consider criterion2, criterion3, stop considering criterion1,criterion2, criterion3")
grepl("criterion1",Vector)
[1] TRUE
For this second condition I want to have FALSE as I would like to ignore all characters after the the word stop
grepl("criterion1",Vector2)
[1] FALSE