carstenht
Mar 7th, 2007, 09:38 AM
if i have the following array:
private string[] digits = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" };
and i then want to check if a string contains any of these numbers, could i do something like this:
String test ="1+2+3";
if(test equals any of the digits in 'digits')
{
// Do stuff
}
private string[] digits = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" };
and i then want to check if a string contains any of these numbers, could i do something like this:
String test ="1+2+3";
if(test equals any of the digits in 'digits')
{
// Do stuff
}