I have the following file names:
s <- c("(1) 1-B1-1_(miRNA-4_0).CEL",
"(10) 1-NEC 4-1_(miRNA-4_0).CEL",
"(11) 1-B5-1_(miRNA-4_0).CEL",
"(12) 1-B5-2_(miRNA-4_0).CEL")
How can I extract only the part between 1 and the number before _ with regular expressions in R?
I want this:
1-B1-1, 1-B5-1, 1-B5-3 etc.