I have such array:
$array = array('abC12', 'bC44', 'Am286c$', 'cC092', 'cC09288');
With using rexexp it is necessary to, at first, delete symbols (replace by ''), that are not in [A-Ca-c0-9]. At second, it is necessary to delete from array variables that not match such condition: string length not equal to 5 (values 'bC44' and 'cC09288').
So, as result array must contain:
$array = array('abC12', 'A286c', 'cC092');
Thanks you for any help!
Vladimir.