题解 | #子字符串频次#
子字符串频次
https://www.nowcoder.com/practice/053caf9d4d9d449bb45a6b02a572f71b
const _searchStrIndexOf = (str, target) => { // 补全代码 if(str.length < target.length){ return 0 } const reg = new RegExp(str, 'g') return str.match(reg).length }