str_find: wrapper function for locate a string based on regex leading...

View source: R/regex.R

str_findR Documentation

wrapper function for locate a string based on regex leading to and after it

Description

wrapper function for locate a string based on regex leading to and after it

Usage

str_find(str, start, end, replacement, return_loc = FALSE)

Arguments

str

a string to search from

start

a regex string that lead to the string of interest

end

a regex string that is after the string of interest

replacement

a string to replace the located string, optional.

Value

_loc a logical, if TRUE then return character start/end location instead of the string itself


fjoe88/d8ahelper documentation built on Feb. 6, 2023, 7:55 a.m.