Match a tab character.
rx_tab(.data = NULL, inverse = FALSE)
.data | Expression to append, typically pulled from the pipe |
---|---|
inverse | Invert match behavior, defaults to |
This function is looks for tabs with the following
expression: \t
Tab character: https://codepoints.net/U+0009
rx_tab()#> [1] "\\t"rx_tab(inverse = TRUE)#> [1] "[^\\t]"# create an expression x <- rx_tab() # create input string <- "foo\tbar" # extract match regmatches(string, regexpr(x, string))#> [1] "\t"