faulkner wrote: > er, > ...|\[[^\]]*\]|... > ^_^ That's why it is nice to use re.VERBOSE:
def splitup(s):
return re.findall('''
\( [^\)]* \) |
\[ [^\]]* \] |
\S+
''', s, re.VERBOSE)
Much less error prone this way
--
- Justin
--
http://mail.python.org/mailman/listinfo/python-list
