<?php $string = ' 55 штю'; $pattern = '/([0-9]+)(\s?шт)/i'; $replacement = '$1 шт'; echo preg_replace($pattern, $replacement, $string);
You have javascript disabled. You will not be able to edit any code.