# NOT RUN {
rx_start_of_line(enable = TRUE)
rx_start_of_line(enable = FALSE)
# create expression
x <- rx_start_of_line() %>%
rx_find("apple")
grepl(x, "pineapple") # should be false
grepl(x, "apple") # should be true
# }
Run the code above in your browser using DataLab