tag:blogger.com,1999:blog-694855878384792308.post908064094556225215..comments2024-03-21T06:26:49.387-07:00Comments on Java67: How to use String.matches() with Regular Expression in Java? Example Tutorial javin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-694855878384792308.post-23531420480939851152020-08-26T00:00:20.306-07:002020-08-26T00:00:20.306-07:00or better it should be treu according to the regex...or better it should be treu according to the regex, but it shouldn't say "contains only numbers"Anonymoushttps://www.blogger.com/profile/10254116061590512173noreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-85364222440459987242020-08-25T23:48:39.719-07:002020-08-25T23:48:39.719-07:00yes but it should be falseyes but it should be falseAnonymoushttps://www.blogger.com/profile/10254116061590512173noreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-76269168183687317972017-10-22T17:44:12.661-07:002017-10-22T17:44:12.661-07:00it IS trueit IS trueAnonymoushttps://www.blogger.com/profile/06925668468153273237noreply@blogger.comtag:blogger.com,1999:blog-694855878384792308.post-22951719980619378212017-02-11T04:36:54.087-08:002017-02-11T04:36:54.087-08:00The Result: "number 234a contains only 1-9 d...The Result: "number 234a contains only 1-9 digits : true"<br />Is incorrect. The regexp should be like ".[1-9]*" (if +- signs presence are OK), or "[1-9]*" if only and strictly digits are checked for.Anonymousnoreply@blogger.com