<?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.