Parsing string and remove special character

Hello,
I would need to perform string manipulation. The string is a barcode result from a scanner.
The string is '42017347ý92748999916521553111111428' ( exclude quote).
I need to find special ý character and then remove whatever in front of it.
The result should be 92748999916521553111111428.

Any help would be appreciated. Thanks.

If you cannot auto pos = barcode.find( 'ý' );

Then I would use isdigit() with std::find_if() to search a character from the barcode that isn't a digit.
See http://www.cplusplus.com/reference/algorithm/find_if/
Topic archived. No new replies allowed.