<?php $a ='www.'; preg_match( '/^\[a-z0-9][a-z0-9\-]/', $a, $matches); echo $matches[1]; // 1234
You have javascript disabled. You will not be able to edit any code.