Hi,
You can use a RegExp to split the string to the textual and the numeric
part, and then apply int.Parse to the match for the numeric part.
The RegExp will look like this:
([a-zA-Z]?)([0-9]+)
--
Sincerely,
Dmytro Lapshyn [Visual Developer - Visual C# MVP]
"trint" <tr***********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I need to know if this string, which will always vary is a letter or a
number value AND if it is a letter, to only get the number, which is
obviously 7000:
string prodID = "us7000";
is Parse, the best way to get this?
Thanks,
Trinity