I have a RegEx Patern like
string _pattern = @"\d{4}-\d{2}\/\d{2}\/\d{4}";
How do I check if a string value belongs to this pattern in full or is part of this pattern.
for e.g if i send
string someString= "0007-08/02/2012";
Match m = Regex.Match(someString, _pattern);
//i get a full match
but if i send
string someString="0007-"
//how do i check if this string value matches that pattern and is a substring.
Is there any other way of doing it ,other than using regex.
Thanks, csk