x <- "tempo/blah/blah/aaa-bbb-ccc/def/ghi/jkl"regmatches(x, regexpr("/aaa-bbb-ccc/.*", x))
Standard input is empty
[1] "/aaa-bbb-ccc/def/ghi/jkl"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!