Learn R Programming

shinyAce (version 0.4.3)

re_capture: Retrieve regular expression named capture groups as a list

Description

Retrieve regular expression named capture groups as a list

Usage

re_capture(x, re, ...)

Value

a named list of matches

Arguments

x

a character string to capture from

re

the regular expression to use

...

additional arguments passed to regexpr

Examples

Run this code
shinyAce:::re_capture("ak09j b", "(?\\d+)(?[a-zA-Z]+)", perl = TRUE)

Run the code above in your browser using DataLab