extract_after: Extract all characters in a string after a match

View source: R/strings.R

extract_afterR Documentation

Extract all characters in a string after a match

Description

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

Usage

extract_after(full_string, after_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.

trim_spaces

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

Value

A string

Examples


extract_after("What does the fox say?", after_string = "What does the")


jimbrig/jimstools documentation built on Sept. 12, 2022, 12:08 p.m.