$string = "Testweg 77-88a"; ($hausnr_von,$hausnr_bis) = $string =~ /(\d+[a-zA-Z]?)(\-\d+[a-zA-Z])/;