Google Sheets colors a number in blue in its formula syntax:
It seems like the requirements are:
- It can only contain numbers and an optional period
- It cannot contain more than one period
- It cannot contain anything else
My first stab this was:
But this of course allows multiple .
's which I don't want. For example, it would allow 123.128.129.00
. What would be a better regex for this?