str_capture: Named capture groups

Description Usage Arguments Value

View source: R/core.R

Description

Named capture groups

Usage

1
str_capture(string, pattern, delim = c("{", "}"))

Arguments

string

input character vector

pattern

a regex using named capture groups as used in glue and unglue

delim

delimiters of the named capture groups. Note: Very litte sanity checking is done here. You'll want to be able to guarantee that these delims do not appear in your actual string input otherwise things will not go as you want. Caveat Emptor!

Value

data.frame of captured groups


coolbutuseless/fugly documentation built on Dec. 19, 2021, 6:03 p.m.