Lets say I have this line:
\"My name is {name}\".format(name=\"qwerty\")
I know that the variable name is name and so I can f
name
def get_arg(yourstring): arg_list = [] pin = False for ch in yourstring: if ch == "{": pin = True elif ch == "}": pin = False arg_list.append(text) text = "" elif pin: text +=ch return arg_list