<?php $matches = AH587910; preg_match( '#^AH\d{6}$#',$matches ); echo $matches[5]; // 1234
You have javascript disabled. You will not be able to edit any code.