I'm looking to determine if an Arduino String contains any other character than those that would be in the
[number] could be positive or negative.
I know I can run a for down the entire string and use
if(isDigit([char]) || isWhitespace([char])||[char]=='-') however, I imagine there's a better way to do this.
Could I (for example) convert the String to an array of values and search the array for any value that doesn't correspond to the characters I'm looking for? Or is there a better way to check this out?