Split a text by multiple separators, and return a result of the text and separators. For example, splitText("Hello <and> world [then] !", ["<and>", "[then]"]) will return ["Hello ", new Separator("<and>"), " world ", new Separator("[then]"), " !"]
splitText("Hello <and> world [then] !", ["<and>", "[then]"])
["Hello ", new Separator("<and>"), " world ", new Separator("[then]"), " !"]
Split a text by multiple separators, and return a result of the text and separators. For example,
splitText("Hello <and> world [then] !", ["<and>", "[then]"])
will return["Hello ", new Separator("<and>"), " world ", new Separator("[then]"), " !"]