C++ · Strings and characters

substr and find

Pulling a value out of a label like R1-220 takes two moves: find where a piece starts, then cut it out.