const match = template.match(/<[^<>]+>/g);const match1 = template.match(/<(.*?)\>(.*?)<\/(.*?)\>/g);
console.log(match);
console.log(match1);
验证必须包含大、小写字母、数字、特殊字符@#.!$_=
passwordChar(value: string): any {let result =null;if(value){
result = value.match(/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[@#.!$_=]).{8,}$/)?null:{ illegalChar:true, message:'必须包含大、小写字母、数字、特殊字符@#.!$_='};}return result;}