Javascript: String manipulation [SOLVED]

UPDATE: Solved
Short version: you can use most (all?) .net string methods that Mono and .net support. Docs are here:

To use string.Split(), it requires a bit of weird syntax, as described in this post:

http://forum.unity3d.com/viewtopic.php?t=5414

Thanks for the help.

ORIGINAL:
I’ve been trying to figure out how to manipulate strings (break them up, find individual chars within, etc). I have zero luck finding in the Scripting Reference.

However on the Unify Wiki I found a reference to IndexOf() in JS. I tried it, and it worked. I’m also seeing Substring().

Still, these don’t have entries in the Scripting Reference. (they show up in some of the code examples for other methods in the reference, but that doesn’t really count)

So my question is:
where do you go to find this documentation?

Is it fully documented anywhere? What else am I missing? Are there full string manipulation methods in Unity’s JavaScript?

Yes in the MSDN documentation on strings.
You best look at the C# there.

All base classes etc are .NET functionality, not some Unity magic especially for UnityScript or alike :slight_smile:

Thanks. Got a link?

Edit: found this:

Can’t seem to make Split() work though; not sure what type of argument it wants. Any suggestion?

Edit 2: Solved. See the original post for all the answers.