def getCodeFromParamStr(val):
 tmp = re.sub('^(\\$)+', '', val)
 tmp2 = re.sub('([^\\\\])(\\$)+', '\\1', tmp)
 return re.sub('[\\\\]\\$', '$', tmp2)

def getCodeFromParamStr ( val ) : tmp = re . sub ( '^(\\$)+' , '' , val ) tmp2 = re . sub ( '([^\\\\])(\\$)+' , '\\1' , tmp ) return re . sub ( '[\\\\]\\$' , '$' , tmp2 )
convert a param .