optimization a regular expression

前端 未结 0 1550
别那么骄傲
别那么骄傲 2020-12-04 06:32

Here is an expression

const reg = new RegExp(`^([\\u4e00-\\u9fa5a-zA-Z0-9_-]){1,${num}}$`)

Which design to detect a wold\'s length less than

相关标签:
回答
  • 消灭零回复
提交回复
热议问题