def get_values(text):
res = re.findall(r"<STR_LIT>", text)<EOL>values = []<EOL>for r in res:<EOL><INDENT>if "<STR_LIT:|>" in r:<EOL><INDENT>params = r.split("<STR_LIT:|>")<EOL>for p in params:<EOL><INDENT>values.append(p)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>values.append(r)<EOL><DEDENT><DEDENT>values = [str(v.lower()) for v in values]<EOL>return values<EOL>
Accept a string such as BACKGROUNDCOLOR [r] [g] [b]
and return ['r', 'g', 'b']