Split the string into a (zero based) array like the builtin Split() function, but use a list of delimiters and split on any one of them. Useful for parsing expressions.
The string to split
Don't add empty elements to the array (if the string is empty, the array will be memberless)
Add the delimiter back to the front of the array element (so we can tell which delimiter was used)
The list of splitting delimiters
Dim m_arr() As String
m_arr = xf.str.SplitMultiDelim("base + buttonwidth / 1cm", False, True, "+", "-", "*", "/") => m_arr(0) = "base", m_arr(1) = "+ buttonwidth", m_arr(2) = "/ 1cm"
m_arr = xf.str.SplitMultiDelim("base + buttonwidth / 1cm", False, False, "+", "-", "*", "/") => m_arr(0) = "base", m_arr(1) = "buttonwidth", m_arr(2) = "1cm"