how can I parse for a piece of a string in c++
Posted on 2006-06-15
I have the following string and would like to know how I can parse to get just the first part of the string.
temp string = "C0OH5Z14=017=";
In the example above i am looking to get the "C0OH5Z" portion of the string. My only problem is that this part of the string may be larger or smaller. It will however though always have some kind of wierd character at the end of it. Not numerical or alphanumeric. It will be either the box shown above or an = sign. So I figure there has got to be a way to grab everything right up until that character.
Any help would be apprecaited.