bstr_extract: Extract matching patterns from a bstr object

Description Usage Arguments Examples

View source: R/bstr_extract.R

Description

Extract matching patterns from a bstr object

Usage

1

Arguments

bstrobj

bstr class object or character vector

pattern

regex pattern

Examples

1
2
3
4
5
bstr_locate(c("ABCDE"), c("A", "C"))
bstr_extract(c("ABCDE"), c("A", "C"))

bstr_locate(c("ABCDE", "BC"), c("A", "C"))
bstr_extract(c("ABCDE", "BC"), c("A", "C"))

t-arae/bstringr documentation built on March 18, 2021, 3:08 a.m.