Hi esthera,
Lars is right, regexps are really powerful ... try to get to grips with them.
But, in any case, it's a good policy to try to list all the possible alternative strings, to get a handle on what's going on.
From what you've said, this list seems to be ...
XXNNNN
XXNNN
XXNN
XXN
XX
... where X is a character and N a digit.
Now when you say 'parse' I assume you mean 'extract the two pieces of information'.
Suppose $code contains the string ...
<?php
$characters = substr($code, 0, 2);
$digits = substr($code, 2);
if($digits === ''){ // Check if empty
echo 'No numbers';
} else {
$digits = 0 + $digits; // Convert to number
}?>[\PHP]
Paul. ;)