ValidateFormate(Juryo.Text, @"(^[1-9]\d{0,7}$)|(^0\.\d$)|(^[1-9]\d{0,7})\.\d$")
public Boolean ValidateFormate(string text1, string formate)
{
Regex r = new Regex(formate);
Match m = r.Match(text1);
if (m.Success)
{
return true;
}
else
{
return false;
}
}
浙公网安备 33010602011771号