Backstage regular verification

xiaoxiao2021-03-06  61

Using system.text.regularExpressions; // Namespace public bool isnumber (String InputValue) {/ * Judgment input is a real number * / string pattern = @ "^ [0-9] / d * [.]? / d * $ "; Match m = regex.match (InputValue, Pattern); if (m.success) {Return true;} else {Return False;}

}

转载请注明原文地址:https://www.9cbs.com/read-112603.html

New Post(0)