I am new to Java. I need a regex to match string with such a pattern:
[0-9].[0-9].[0-9]
For example, the regex should match strictly 5.5.0 or 4.6.5 or 5.2.2.
The above pattern matches strings like 135.9.0 which will give output as 5.9.0
But I do not want to match such kind of pattern.
I should be able to match exactly three digits which is separated by a period(.) symbol.
24.54.65Or just single digits -3.4.5?Clear enough. And may be you have a brilliant English.. But you sure don't have ethics.. Which looks from the way you are talking..