Unity JS Equivalent of split()?

It looks like Unity does not support Javascript's `String.split()` (or PHP's `explode()`)... Is there an equivalent of this?

How would you convert a delimited string to an array? This would be useful for loading level data stored in an external server.

You use the .NET one ( http://msdn.microsoft.com/en-us/library/system.string.split.aspx )


The [0] is a dodgy javascript hack to get the char from the string (as you can't do a char literal)

same question, I've yet to find a working solution without giving a format error when attempting to split an array in javascript.