标签 java regex
<分区>
我想在 Java 中构建一个允许大于 100 的数字的正则表达式。有人可以帮忙吗?
最佳答案
^(?!(?:\d{1,2}|100)$)[0-9]\d+$
试试这个。查看演示。
https://regex101.com/r/sJ9gM7/549
关于java - 检查大于 100 的数字的正则表达式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29339393/
相关文章:
java - 警告 : File for type '[Insert class here]' created in the last round will not be subject to annotation processing
java - 当我尝试返回 http 响应时应用程序崩溃
java - 如何给给定参数日期添加 1 天?出现 `java.util.Date cannot be cast to java.sql.Date` 错误
.net core webapi路由属性正则表达式与/
javascript - 如何编写正则表达式来验证特殊位置的字符?
java - Java 中的 RAII... 资源处理总是那么难看吗?
c# - 如何检查文本中是否包含 "not allowed"单词或符号?
javascript - 在编译时检测不受支持的正则表达式功能
python - 用于匹配右大括号的正则表达式
java - 段落条件嵌套正则表达式(递归)