This function simply adds a + to the end of the expression.
one_or_more(.data = NULL)
.data | Expression to append, typically pulled from the pipe |
---|
one_or_more()#> [1] "+"# create an expression x <- find(value = "a") %>% one_or_more() # create input input <- "aaa" # extract match regmatches(input, regexpr(x, input))#> [1] "aaa"