Regex help needed

rh0dium sklass at pointcircle.com
Tue Jan 10 17:42:46 EST 2006


Michael Spencer wrote:
>   >>> def parse(source):
>   ...     source = source.splitlines()
>   ...     original, rest = source[0], "\n".join(source[1:])
>   ...     return original, rest_eval(get_tokens(rest))

This is a very clean and elegant way to separate them - Very nice!!  I
like this alot - I will definately use this in the future!!

> 
> Cheers
> 
> Michael




More information about the Python-list mailing list