1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
| alphabets: /^[A-Za-z]+$/ bankAccount: /^([1-9]{1})(\d{15}|\d{16}|\d{18})$/ currency: /^(([1-9]\d*)|0)(\.\d{0,2})?$/ email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ identity: /^\d{6}(18|19|20)?\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/ ipAddress: /^((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))$/ lowerCase: /^[a-z]+$/ ltrim: /(^\s*)/ mobile: /^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(1[6|7|8][0-9]))\d{8}$/ negInt: /^-[1-9]\d*$/ password: /^[a-zA-Z0-9]{6,16}$/ phone: /^(0\d{2,3}-\d{7,8}(-\d{3,5}){0,1})|(((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(1[6|7|8][0-9]))\d{8})$/ posInt: /^[1-9]\d*$/ quantity: /^(([1-9]\d*)|0)(\.\d*)?$/ rtrim: /(\s*$)/ staffNumber: /^[0-9A-Za-z]{1,6}$/ tel: /^0\d{2,3}-\d{7,8}(-\d{3,5}){0,1}$/ trim: /(^\s*)|(\s*$)/ upperCase: /^[A-Z]+$/ url: /^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/ username: /^[a-zA-Z0-9]([a-zA-Z0-9_]{4,19})+$/
|