I would like to write a regular expression which allow only numbers and decimal point or colon (:) instead of decimal point. Bellow is some example
Valid:
87887
8787.878
8878:98
Invalid
abc
989ab
8987.89:87
I have the regular expression ^[0-9.:]+$
to validate but its accepts colon after the decimal point .
which means if I write 898.:89
, it shows valid.
Can you please help me to find out a solution