I am implementing a method which need to find if the string corresponds to some pattern : I am using the following code :
if (Regex.IsMatch(str, @"^[\d]{3}00{\d]{4}$"))
{
return false;
}
return true;
And test it with this string "123003678"
It returns true...
I can`t figure out what is the problem there...Any thoughts?
Thanks