Skip to content

匹配正则表达式,将string类型替换为number类型

'(\d+)'
$1

alt text

正则表达式匹配源码里的中文

[\u4e00-\u9fa5]+

alt text