I need to replace a number with a decimal point with a colon. So in short:
Input
Pick me up at 5.50 and take me to the zoo
Required
Pick me up at 5:50 and take me to the zoo
However, I don't want to replace a number with just a period:
Input
Pick me up at 5. Take me to the zoo.
Required
Pick me up at 5. Take me to the zoo.
I could do this by brute force, but I believe a regex is the best solution here, and inevitably as I am not a regex expert, I have come up against Zawinski's Law.
I can match the number, but I am stuck on how to do the replacement.
\d\.\d+
I believe I need to use lookahead and/or grouping, but I'm not familiar with the syntax.
I've found previous questions like Replace dot(.) with comma(,) using RegEx? and Remove decimal point when not between two digits but the first advises not using a regex at all, while the second seems relevant but I can't figure out how to change the answer to get the match, let alone how to replace it.