Split strings at -pairs.
split_at_brace_pairs(s, open_symbol = "{", close_symbol = "}")
s | string or list of strings to split. |
---|---|
open_symbol | symbol to start marking. |
close_symbol | symbol to end marking. |
array or list of split strings.
split_at_brace_pairs("{x} + y + {z}")#> [1] "{x}" " + y + " "{z}"