rx_tab: Match a tab character.

Description Usage Arguments Details Examples

View source: R/special_characters.R

Description

Match a tab character.

Usage

1
rx_tab(.data = NULL, inverse = FALSE)

Arguments

.data

Expression to append, typically pulled from the pipe %>%

inverse

Invert match behavior, defaults to FALSE (match tabs). Use TRUE to not match tabs.

Details

This function is looks for tabs with the following expression: \t

  1. Tab character: https://codepoints.net/U+0009

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
rx_tab()
rx_tab(inverse = TRUE)

# create an expression
x <- rx_tab()

# create input
string <- "foo\tbar"

# extract match
regmatches(string, regexpr(x, string))

RVerbalExpressions documentation built on Nov. 6, 2019, 5:08 p.m.