extract_string: extract strings from a vector using regex, analog to...

View source: R/utils.R

extract_stringR Documentation

extract strings from a vector using regex, analog to stringr::str_extract

Description

extract strings from a vector using regex, analog to stringr::str_extract

Usage

extract_string(string, pattern, ...)

Arguments

string

Input vector. A character vector.

pattern

Regex pattern to look for

...

passed on to regexpr()

Value

A character vector with matches only, possibly of different length as string


bioRad documentation built on Oct. 20, 2023, 5:06 p.m.