Reputation:
I need a regex to remove dots in an number but just leaving the last. Example:
12312.123132.12312.131.3131.3123.13123.1231
to
12312123132123121313131312313123.1231
I tried some expressions but none worked.
Upvotes: 2
Views: 1942
Reputation:
In addition to the other answers, here is one more
[.](?!\d*$)
or
[.](?![^.]*$)
Upvotes: 3