On Thu, 20 Jan 2005 14:17:46 +0100, Ollivier Robert wrote: > You do realise that it is very easy with regexp? Just replace $ with > </li> and you're set. Actually, I'd always used \n instead of $. Your suggestion is better. Nonetheless, using a regexp at all still strikes me as a bit clunky. Cheers, Andrew.