public static bool IsMoney(string input)
{
string pattern = @"^/-{0,1}[0-9]{0,}/.{0,1}[0-9]{1,}$";
return System.Text.RegularExpressions.Regex.IsMatch(input, pattern, System.Text.RegularExpressions.RegexOptions.IgnoreCase);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/20972.html