Fidessa interview question

convert string patterns into decimals