Im not sure what exactly it is you are trying to do, but Unity uses Mono (an implementation of .NET framework) for all the ‘generic’ non-api specific operations like string, file I/O, streams etc. So the place to look for info on string functions would be Mono/.NET reference: http://www.go-mono.com/docs/monodoc.ashx?link=T%3ASystem.String
I’m kinda new to Unity also so my answer might be off the wall but… does Unity/Mono support regular expressions? You could do some sort of string matching using regex to find a match for the first 3 chars then a string maniulation to grab chars 4-6 of the string if there is a match…
Sweet, works like a charm. Thanks everybody.
Here the final code I used. Just added the String.Length to keep it more dynamic.
var myString: String = "asdXXXasd";
var indexPos: int = myString.IndexOf("asd");
var excerpt: string = myString.Substring(indexPos + myString.Length, 3);