regular expresson for Unix and Dos Lineendings wanted
Martin Franklin
mfranklin1 at gatwick.westerngeco.slb.com
Fri Feb 24 04:46:33 EST 2006
Franz Steinhaeusler wrote:
> On Thu, 23 Feb 2006 14:46:20 +0100, Franz Steinhaeusler
> <franz.steinhaeusler at gmx.at> wrote:
>
>> Hello, I need a regularexpression, which trims trailing whitespaces.
>>
>> While with unix line endings, it works;
>> but not with Window (Dos) CRLF's:
>
> Thank you all for the replies.
> But I still don't have a solution.
>
> Of course with more lines it is possible,
> but it would be fine to have a "oneliner".
>
Then I clearly don't understand your problem... it seems we gave
you several ways of skinning your cat... but none of them 'worked'?
I find that hard to believe... perhaps you can re-state you problem
or show us your more than one line solution...(so that we might learn
from it)
Martin
More information about the Python-list
mailing list