On 2014-11-25 19:20, Tim Daneliuk wrote:
> > hen you find any opener, you seek its  
> corresponding closer, and then special-case /* to count any
> additional /* and look for a */ for each one */ .
> 
> That's more or less where I was headed.  I just wanted something
> less brute force :)

This seems to directly conflict with your initial request that

> These may be nested.

If they can't be nested, then it simplifies the problem immensely.

-tkc


-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to