re_capture: Retrieve regular expression named capture groups as a list

View source: R/utils.R

re_captureR Documentation

Retrieve regular expression named capture groups as a list

Description

Retrieve regular expression named capture groups as a list

Usage

re_capture(x, re, ...)

Arguments

x

a character string to capture from

re

the regular expression to use

...

additional arguments passed to regexpr

Value

a named list of matches

Examples

shinyAce:::re_capture("ak09j b", "(?<num>\\d+)(?<alpha>[a-zA-Z]+)", perl = TRUE)


trestletech/shinyAce documentation built on Oct. 19, 2024, 10:44 p.m.