Want to using C# Regex to match string. but always return false. code below
bool isMatch(string preDZ, string matchStr)
{
string pat = preDZ + "/d{8}";
Regex reg = new Regex(pat);
return reg.Match(matchStr).Success;
}
Print(isMatch("AS", "AS00000001"));
but always return false. how to set the pattern to match the string "AS" + 8 length digits?