print [w for w in j.split() if w[0] == '*' and w[-1] == '*'] 

Wouldn't that only work if it was bug *car* jeff?

I can imagine bug*car*jeff would throw it.

Cheers, 

Liam Clarke
-- 
'There is only one basic human right, and that is to do as you damn well please.
And with it comes the only basic human duty, to take the consequences.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to