preg_match('$(.*)-(.*?)$',$ID,$sonuc);
echo $sonuc['1'];