I have the following vector:
X <- c(\"mama.log\", \"papa.log\", \"mimo.png\", \"mentor.log\")
How do I retrieve another vector that only
you can use grepl with regular expression:
grepl
X[grepl("^m.*\\.log", X)]