Says who? Not according to you, yes? If what you said is true, then this website, especially on this page, is full of BS: http://www.regular-expressions.info/floatingpoint.html> we will try to build a regular expression that can match any floating point number. Our regex should also match integers, and floating point numbers where the integer part is not given