<?php $re = '/(?<=\w)(?=(?:\w\w)+$)/m'; $str = '121510'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); // Print the entire match result var_dump($matches);
You have javascript disabled. You will not be able to edit any code.