x<-c("NB6106$MU-MU.rma", "NB610634$MU-MU.rma")x[grep(pattern="6106\\$.*\\.rma", x = x)]
Standard input is empty
[1] "NB6106$MU-MU.rma"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!