I am writing a program wich puts this on a display: "LIVE: Cue 0.5 : Chan 11" but i want to change it to: "Chan 11" is there an easy way of doing this bering in mind this: "LIVE: Cue 0.5 :" can chnage.
Thanks
(deleted)
How will we know what to do? What part does NOT change? " : " ? "Chan" ? Something else ?
Take a look at the strtok() function
An example
char input[] = {"LIVE: Cue 0.5 : Chan 11"};
void setup()
{
Serial.begin(115200);
while (!Serial);
char * ptr = strtok(input, ":");
ptr = strtok(NULL, ":");
ptr = strtok(NULL, ":");
Serial.println(++ptr);
}
void loop()
{
}