I want a java regex expression that accepts only the numbers and dots.
for example,
1.1.1 ----valid
1.1 ----valid
1.1.1.1---valid
1. ----not valid
The dots should not be at the starting position or at the ending position.
".1"
,"1..1"
,"1.11"
? Have you already tried something? If so, could you post that as well and explain what went wrong?