str = '<div>12344我是</div><div>第 三方dsfsdff</div>'
需要提取出来 [我是,第 三方] 所对应的下标 11,24
'<div>12344我是</div><div>第三方dsfsdff</div>'.replace(/[u4e00-u9fa5]+/g, function($match, $pos){ console.log($match, $pos); return $match; })
2.1m questions
2.1m answers
60 comments
57.0k users