Function: split()
split(str, extended): string[]
Split a string by |, but ignore escaped characters.
Parameters
• str: string
The string to split
• extended: boolean = false
allow ~ or , as separators
Returns
string[]
Remarks
If extended if true, it will also split by ~ and ,