str_extract_after_last: Return portion of a string after last occurrence of a pattern

View source: R/btools_strings.r

str_extract_after_lastR Documentation

Return portion of a string after last occurrence of a pattern

Description

Return portion of a string after last occurrence of a pattern

Usage

str_extract_after_last(s, last)

Arguments

s

A string.

last

Pattern to look for.

Value

Substring of s after last occurrence of last.

Examples

str_extract_after_last("ab#cde#yzy", "#")
str_extract_after_last("abcde#yzy", "c")

donboyd5/btools documentation built on Jan. 7, 2023, 10:47 p.m.