Hello, I had a string like this:

....... x.y.z.home.room.bed.sheet.type.price

I need to put in an array the last three( sheet, type, price). How can I do, the best chance?
thanks