<?php $str = "abc pqrs-1/2&3uvw xyz"; if (preg_match('~([a-z]+)((?:[^0-9a-z][0-9])+)([a-z]+)~', $str, $matches)) { preg_match_all('~[^0-9a-z][0-9]~', $matches[2], $x); $matches[2] = $x[0]; } print_r($matches);
You have javascript disabled. You will not be able to edit any code.