Learn R Programming

rebus (version 0.0-4)

capture: Capture a token, or not

Description

Create a token to capture or not.

Usage

capture(x)

group(x)

token(x)

Arguments

x
A character vector.

Value

  • A character vector representing part or all of a regular expression.

References

http://www.regular-expressions.info/brackets.html

Examples

Run this code
x <- "foo"
capture(x)
group(x)

Run the code above in your browser using DataLab