4
r"[+-]? d*.? d+"
This regex is accepting numbers with more than one point Ex: 12.23.43 and was not to accept...
4
r"[+-]? d*.? d+"
This regex is accepting numbers with more than one point Ex: 12.23.43 and was not to accept...
5
Try this:
r"^([+-]?\d+)(\.\d+)?$"
Browser other questions tagged python regex
You are not signed in. Login or sign up in order to post.
Thank you very much comrade, it worked perfectly!
– João Carlos