let str1 = '17824229374'
let reg1 = /^1[34578]\d{9}$/g
let res1 = str1.match(reg1)
console.log(res1);
let str2 = '7382431'
let reg2 = /^[1-9][0-9]{4,9}$/g
let res2 = str2.match(reg2)
console.log(res2);
let str3 = '#78bd34'
let reg3 = /#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})/g
let res3 = str3.match(reg3)
console.log(res3);
let str4 = 'jaejeo_owe21@joewhg.com'
let reg4 = /^([0-9A-Za-z_\-\.]+)@([0-9A-Za-z]+)\.([A-Za-z]{2,6})$/g
let res4 = str4.match(reg4)
console.log(res4);
let str5 = 'https://www.bilibili.com/soehghoa/dshf'
let reg5 = /^((https?|ftp|file):\/\/)?([0-9A-Za-z\.]+\.[a-z\.]{2,6})([\/\w\.\-]*)*\/?$/g
let res5 = str5.match(reg5)
console.log(res5);
let str6 = '192.168.0.1'
let reg6 = /^(([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])\.){3}([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])$/g
let res6 = str6.match(reg6)
console.log(res6);
let str7 = '2013-01-03'
let reg7 = /^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/g
let res7 = str7.match(reg7)
console.log(res7);