extract.groups: Extract regex groups (local)

View source: R/yogitools.R

extract.groupsR Documentation

Extract regex groups (local)

Description

Locally excise regular expression groups from string vectors. I.e. only extract the first occurrence of each group within each string.

Usage

extract.groups(x, re)

Arguments

x

A vector of strings from which to extract the groups.

re

The regular expression defining the groups

Value

A matrix containing the group contents, with one row for each element of x and one column for each group.


jweile/yogitools documentation built on May 11, 2023, 7:42 p.m.