Hi, I am receiving text from OSC and I cannot remove the header from the message? The text I receive looks like this: OSCMessage:“/example/7/” : (OSCValue(String) : “He was the first android I encountered and he proved to be quite durable.”) and basically I only want: He was the first android I encountered and he proved to be quite durable.
What do you mean different every time? Your example uses a static string for the first part of the message, so it would effectively accomplish what it looked like you were trying to do in your post, you would just need to supply it an index, which would be the length of the first part of the message.
If you mean the first part always changes as well, assuming it has a pattern, you can just search for the third quotation and SubString to that, and also SubString the last quotation as well. The link I gave you has examples.
Ahh sorry I am still a bit rusty with my coding. I figured it out now with substring! Thank you!!
I did this:
Mssg = message.ToString();
Mssg = Mssg.Remove(0, 50);
Mssg = Mssg.Substring(0, Mssg.Length - 2);