Split strings at -pairs.

split_at_brace_pairs(s, open_symbol = "{", close_symbol = "}")

Arguments

s

string or list of strings to split.

open_symbol

symbol to start marking.

close_symbol

symbol to end marking.

Value

array or list of split strings.

Examples

split_at_brace_pairs("{x} + y + {z}")
#> [1] "{x}" " + y + " "{z}"