3 ms·:3,$s/\./?./g Solves all your problems without having to think.by tgv 4y ago:3,$s/\./?./g Solves all your problems without having to think.leipert 4y agoperiods could be null. So you would need to optional chain the array access also.