Skip to content

str_before_match

Shawn edited this page May 30, 2024 · 1 revision

Returns the string before a match (str_before_match)

This function returns the string before a match. It uses the str_longest_match function to find the match and then returns the string before it.

Paramaters

  • return The string before the match.

Usage

str_before_match(str, test, ..., .open = "(", .close = ")?")

Examples

ZekDex:::str_before_match("Zekrom", "Zek")
Clone this wiki locally