delim as delimiter.
Example 1. "foo.bar.foo".divide(".") returns ("foo", "bar.foo")
Example 2. "foo.bar.foo".divide("|") returns ("foo.bar.foo", null)
Example 3. "foo.bar.fiu".divide(".", true) return ("fiu", "foo.bar")
| Parameters |
delim -
Delimiter character(s) dir - Direction (default false), false = from start of the string, true = from end of the string |