Hello All, say you have some string: "['a', 'b', 1], foobar ['d', 4, ('a', 'e')]" Now i want to extract all substrings for which "isinstance(eval(substr), list)" is "True" . now one way is to walk through the whole sample string and check the condition, I was wondering if there is any smarter way of doing the same, may be using regular-expressions.
Thanks, amit. ---- Endless the world's turn, endless the sun's spinning Endless the quest; I turn again, back to my own beginning, And here, find rest. -- http://mail.python.org/mailman/listinfo/python-list