Splits a string by any of the given substrings. Each splitter is treated literally (special regex characters are escaped).
Example:
splitByStrings("one--two__three", "--", "__");// ["one", "two", "three"] Copy
splitByStrings("one--two__three", "--", "__");// ["one", "two", "three"]
The input string to split.
One or more substrings to split by.
An array of string segments split at any of the given substrings.
Splits a string by any of the given substrings. Each splitter is treated literally (special regex characters are escaped).
Example: