1234567891011121314151617181920212223 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Text.RegularExpressions;
- namespace TimedUpload.utils
- {
- public class CommonUtil
- {
-
-
-
- public static bool IsNumber(string s)
- {
- if (string.IsNullOrWhiteSpace(s)) return false;
- const string pattern = "^[0-9]*$";
- Regex rx = new Regex(pattern);
- return rx.IsMatch(s);
- }
- }
- }
|