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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This regex detects all but the last dot:
[.](?![\w]{2,4}$)