I have this problem where I use Pattern.matches when I try to match 0.004 (for example) to a regex that should match it. The problem is when I try to match 0.004 turns to 4.