extract_between: Extract a portion of a string between two patterns

Description Usage Arguments Value

View source: R/helpers-define-run.R

Description

If a string has more than one match, this will only return the first one.

Usage

1
extract_between(full_string, after_string, before_string, trim_spaces = TRUE)

Arguments

full_string

The full character string to extract from.

after_string

A pattern specifying the string should be extracted after this.

before_string

A pattern specifying the string should be extracted before this.

trim_spaces

logical T/F, if there are any spaces within the extracted string, they will be removed. Default is TRUE.

Value

A string


jdtrat/taskdesignr documentation built on Feb. 4, 2021, 9:48 p.m.