Each write regular spend a long time, smoking two minutes to write down some items commonly used record
1 can not be included in a comma and a vertical bar
/^((?!,|,|\|).)*$/
2 integer
/^(0|[1-9][0-9]*|-[1-9][0-9]*)$/
31-999 integer
/^[1-9]\d{0,2}$/
Number 4 is greater than 0, 2 decimal places
/^0\.([1-9]|\d[1-9])$|^[1-9]\d*(\.([0-9]|\d[0-9]))?$/
5 E-mail check
/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
6 phone numbers, and symbols "-", "_"
/^([\d_\-\+]+)+$/
There are other, down to the first record, well, I went to work
/^([\w\u4E00-\u9FA5_\-\(\)\(\)\s.&,]+)+$/,// in English, numbers, spaces and symbols "-", "_" , "," ( ",") "," ( ",") "," & ",", " / ^ ([\ W \ u4E00- \ u9FA5 _ \ - \ (\) \ (\) \ S. ,] +) + $ /, // English, numbers, spaces, and the symbol "-", "_", "," ( ",") "," ( ",") ",", " / ^ [ 0-9] + (. [0-9] {1,2})? $ /, // can enter up to two decimal /^[0-9]+(.[0-9]{1, 4})? $ /, // you can enter up to four decimal "/ ^ [0-9] * [1-9] [0-9] * $ /, // positive integer / ^ ([\ w ] +) + $ /, // English and digital /^([\w\u4E00-\u9FA5_\-.]+)+$/,// in English, numbers and symbols "-", "_", " . " /^([\w\u4E00-\u9FA5_\-\,\s.]+)+$/,// in English, numbers, and the symbol" -. "," _ "," ", space," , ' ' / ^ ([\ W \ u4E00- \ u9FA5 _ \ - \ (\) \ (\) \ S] +) + $ /, // English, numbers, and symbols "-", "_", " () () "space " / ^ ([\ w _ \ - \ (\) \ (\) \ s] +) + $ /, // English, numbers, and symbols "-", "_", "() "" () "Space / ^ ([\ u4E00- \ u9FA5 _ \ - \ (\) \ (\) \ d] +) + $ /, // Chinese, numbers and symbols "-", "_", "()", " () " / ^ ([\ W \ u4E00- \ u9FA5 _ \ -] +) + $ /, // English, numbers, and symbols" - "," _ " / ^ ([\ w _ \ -] +) + $ /, // write the English, numbers, and symbols "-", "_" / ^ ([A-Za-Z \ D \ -. \ & \ \, \ (\) \ s] + ) + $ /, // write the English, numbers and symbols &, ,,, -., (,) / ^ ([\ W _ \ - \ S] +) + $ /, // uppercase and lowercase, numbers, and symbols "-", "_", space