Retrieve regular expression named capture groups as a list
re_capture(x, re, ...)
a character string to capture from
the regular expression to use
additional arguments passed to regexpr
a named list of matches
shinyAce:::re_capture("ak09j b", "(?<num>\\d+)(?<alpha>[a-zA-Z]+)", perl = TRUE)
#> num alpha
#> "09" "j"