Hi. This seems so simple, yet I can’t seem to get it right. I’m trying to write a regular expression for a pattern that looks like an unsigned float (with possible trailing zeros).
For example. I want to match something like “78783.9920”. That’s it!
I’ve tried at least a dozen different expressions, but here’s the most recent one that failed.
var reg = /^[0-9]+.
I just wanna match some numbers, followed by a period, followed by some more numbers.
I would also be grateful if someone could point me to a good resource to learn regex better. I find that most tutorials online don’t give enough examples (especially for multiple strings tested against the SAME regex), or they just don’t really explain very well WHY or WHY NOT there is a match.
Thanks.