validation

What's the best regex for validating floats?

I'm trying to create a regex pattern that can effectively identify float numbers. My current regex is `^-?(d+.d*|d*.d+)$`, which works well for cases like `-90.`, `.67`, and `42.6`,…