1.匹配重复标签和嵌套标签  (1).匹配重复标签 //重复标签 $string = “&…