Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged 输入正则表达式

0 votes
4.0k views
1 answer
    有这么个场景,需要将输入的数据A 作为正则表达式去校验/匹配 别的参数 没有对输入做任何限制, try { reg = new RegExp(reg); // reg:数据A } catch (e) { return; } 现在是先将输入 数据new ... 下,但是如果用户输入的就是/d/,/[a-z]{3,}/这样的,就有点问题了, 请问这种怎么处理呢...
asked Jan 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
4.4k views
1 answer
    有这么个场景,需要将输入的数据A 作为正则表达式去校验/匹配 别的参数 没有对输入做任何限制, try { reg = new RegExp(reg); // reg:数据A } catch (e) { return; } 现在是先将输入 数据new ... 下,但是如果用户输入的就是/d/,/[a-z]{3,}/这样的,就有点问题了, 请问这种怎么处理呢...
asked Jan 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
To see more, click for the full list of questions or popular tags.
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...