思路ts代码 https://leetcode-cn.com/problems/repeated-substring-pattern/ 思路基本正则模式匹配 ts代码function repeatedSubstringPattern(s: string): boolean { let reg: RegExp = /^(\w+)\1+$/ return reg.test(s)}console.log(repeatedSubstringPattern('abcabcabcabc'))