regex - how can I make a regex with a range specific to a number [1-7543]?
问题描述
I Tried this for example: ^([1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9)$
However, this covers 1-9999, not sure how can I be specific to that number (7543) as a limit. I am really new to regex.
Any help? thanks!
解决方案
推荐阅读
- azure - 长时间处理后 Azure 网站超时
- matlab - 如何在 MATLAB 中有效地为绘图设置动画?
- javascript - 如何使用 sequelize 删除数据行?
- python - 如何计算文件中字符串的出现次数并将其附加到另一个文件中
- ssl - 如何在 amazon linux AMI 中安装让我们加密 ssl?
- javascript - 解析 iCal 文件以显示下一个事件?
- dialogflow-es - 对话流意图静态响应在完成所有 7 之前重复
- python-3.x - 如何在python中创建图像并保存
- jquery - Select2 悬停时隐藏弹出标签/工具提示
- android - 在 Kotlin 中使用“when”语句时,如何为每种情况调用多个函数?