I am trying keep only that part of the string left of "keyword"
. Anything on the right of "keyword"
should be removed. beg2char
seems like the best choice but its not doing what I thought it would do.
Please advise:
x <-"/index.php/front/yellow/searchHeading/heading/926/h_name/Architects/keyword/A//"
beg2char(x,"keyword")
# [1] "/in"