shinyAce (version 0.4.1)

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, ...)

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

Run this code
# NOT RUN {
shinyAce:::re_capture("ak09j b", "(?<num>\\d+)(?<alpha>[a-zA-Z]+)", perl = TRUE)

# }

Run the code above in your browser using DataLab