fixed regular expression to also include - for ec codes