powered by
rx_line_break()
This expression looks for line breaks, both Unix and Windows style by using the appropriate non printable characters.
rx_br(.data = NULL)
Expression to append, typically pulled from the pipe %>%
%>%
Unix style: https://codepoints.net/U+000A
Windows style: https://codepoints.net/U+000D
Non printable character: https://www.regular-expressions.info/nonprint.html
# NOT RUN { rx_br() # create an expression x <- rx_br() # create input string <- "foo\nbar" # extract match regmatches(string, regexpr(x, string)) # }
Run the code above in your browser using DataLab