I would like to find out if there is a function in a library such that if I were to specify the start and end position of a string, it will output that part of the string.
'9' is neither the 'zero'th' character from either end of the string, nor is 'c' the fourth, maybe the 4 is a length? Can you explain what your wanted function is actually doing?
You could, of course, turn this into a function that accepts the start position and length to copy and returns the substring.
NOTE - this uses C style strings (NULL terminated arrays of chars) rather than Strings
If the string to be split has delimiters, as in your example, then you would probably be better off using the strtok() function to split the source string at the backslashes.
I'm glad that my wife is not into programming because she hates me answering a question from her about how to do something and me starting "Well..." because she knows that I will be giving alternatives and that is not usually what she wants to hear.
So many ways to do the same thing and all of them with advantages and disadvantages. What fun we have giving advice.
Ah, okay @UKHeliBob, only your advice is okay.
You response to first question about using a String object with a function strncpy() that is not for String object.
I suggest a function to @tolisn63 about another question.
here is a JQuery inspired design alowing a simple?? syntax like: s.find( '/' ).find( '/', 1 ).next().print( Serial );.
It is an excerpt from a new lib of mine, uncreatively named CQuery