随笔分类 - RegExp
摘要:// import Translate from 'translate-components' /* * 匹配所有汉字RegExp: [\u4e00-\u9fa5] [\u4E00-\u9FA5]|[\uFE30-\uFFA0] * 汉字部分除了^的标签jsonRegExp: <Translate>
阅读全文
摘要:正则表达式测试地址 goHomeTest 特殊情况 [] 中貌似除了 \ ] - 之外都不需要转义. replace(/[^\d.]/g, "").replace(/^\./g, "").replace(/\.{2,}/g, ".").replace(".", "$#$").replace(/\./
阅读全文