Re: Text conversion in python

From: Adam bultman <adamb@glaven.org>
Date: Thu Mar 24 2005 - 16:32:52 AKST

Anthony Valentine wrote:

>Hello everyone!
>
>I am very new to python and cannot seem to figure out how to perform a
>simple text substitution.
>
>I want to remove all single quotes from a line of text.
>
>In perl, I would use:
> $var =~ s/'//g;
>
>Does anyone know how to do this in python?
>
>Thanks in advance!
>
>Anthony Valentine
>
>
>
>
I don't know python, but you might try escaping that single-quote?

Adam

>---------
>To unsubscribe, send email to <aklug-request@aklug.org>
>with 'unsubscribe' in the message body.
>
>
>

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Thu Mar 24 16:30:12 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 24 2005 - 16:30:12 AKST