I have a list of strings like below.
arr = ['U.S.A','Ph.D','Mr.']
I would like to clean this array of the period so that the output would be like
arr = ['USA','PhD','Mr']
Is there a clean regex way to do this?
I have a list of strings like below.
arr = ['U.S.A','Ph.D','Mr.']
I would like to clean this array of the period so that the output would be like
arr = ['USA','PhD','Mr']
Is there a clean regex way to do this?