gov wrote: >Hi, > > > <snip>
>If anyone could give me suggestions as to methods in sorting this type >of data, it would be appreciated. > > > Maybe it's overkill, but I'd *highly* recommend David Mertz's excellent book "Text Processing in Python": http://gnosis.cx/TPiP/ Don't know what all you're needing to do, but that small snip smells like it needs a state machine which this book has an excellent, simple one in (I think) chapter 4. Jeremy Jones -- http://mail.python.org/mailman/listinfo/python-list