You could use
if (command.indexOf("CMD") > -1) {
// extract the value and what follows
}
And then extract the value as you like.
You could use
if (command.indexOf("CMD") > -1) {
// extract the value and what follows
}
And then extract the value as you like.