I'm using [+-]?[0-9]*.[0-9]{1,} this simple regex for detecting simple floating numbers. It's working fine but it's detecting 4.0O0 as a floating point number. Can anyone explain me why ? i'm doing it using python , the code is given below:
pattern=r'[+-]?[0-9]*\.[0-9]{1,}'
input_float=input().strip()
if re.match(pattern,input_float):
print("True")
else:
print("False")