正则验证

十六进制: /^0[xX][0-9a-fA-F]+$/
小写字母: /^[a-z]+$/
字母: /^[a-zA-Z]+$/
字母数字: /^[a-zA-Z0-9]+$/
百分数: /^(?:100(\.0{1,2})?|[1-9]?[0-9](?:\.[0-9]{1,2})?)$/
Email:/\w{1,}[@][\w\-]{1,}([.]([\w\-]{1,})){1,3}$/
URL: /^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i
IP:/^(0|[1-9]\d?|1\d\d?|2[0-4]\d|25[0-5])\.(0|[1-9]\d?|1\d\d?|2[0-4]\d|25[0-5])\.(0|[1-9]\d?|1\d\d?|2[0-4]\d|25[0-5])\.(0|[1-9]\d?|1\d\d?|2[0-4]\d|25[0-5])$/

你可能感兴趣的:(F#)