<?php $str = "QR12345678"; var_dump( preg_match('/^[A-Z]{1,3}[0-9]{4,10}$/', $str) );
You have javascript disabled. You will not be able to edit any code.