<?php $strs = explode("\n", '21 14" 14" 14 16"'); foreach ($strs as $str) { echo preg_replace('/(?<!"|^)$/', '"', $str) . "\n"; }
You have javascript disabled. You will not be able to edit any code.