Fidessa Interview Question

convert string patterns into decimals