$re = '/(?i)[a-z]*[\d]+[a-z]*[\-{1}][a-z]*[\d]+[a-z]*/mi';
$str = '1033A-1033D
12A-12B
A12-12A
A12-B12
11E-24E
1A-1B
';
preg_match($re, $str, $matches, PREG_OFFSET_CAPTURE, 0);
// Print the entire match result
var_dump($matches);
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for PHP, please visit: http://php.net/manual/en/ref.pcre.php