If I have a character vector:
links <- c("http://fdsfdsfdsfsdaaa.com/t5/this/bd-p/fdsfsdfdsfscshdad/dasd",
"http://ffdsfdddddfdf.com/t5/that/bd-p/fdsfdsfsddfjfsd")
I want to extract "this" and "that" knowing that they are between "t5" and "bd-p." Totally lost on this one.