title: In C++, how should I go about parsing an integer nested within a string, where the integer is of variable length?
body: <p>The text to the left and right of the integer is relevant to initialize an object, so it needs to be kept. The starting of the integer will persist and i'm thinking I will try and use a while loop to check to see if the next character is also digit, but I feel like their must be a more elegant solution. Does anyone have any hints, tips, or tricks?</p>