$regex = '%#([0-9]{6}-[0-9]{4}-[A-Z0-9]{8}-[0-9]{4})$%';
The above regex will match the pattern above, so long as the format is the same across the board...
$regex = '%#([-A-Z0-9a-z]+)$%';
The second regex (above) will match as well, but is not as strict.
Hope that helps.
*EDIT*
Added backreference support to regex...