I'm trying to isolate a substring of each string element of an array such that it is the string until the last period. For example I would want to have:
input = 'A.01.0'
output = 'A.01'
or
input = 'A.0'
output = 'A'
And I want to do this for all elements of an array.