This is not what I meant. My posting was a judgement error. You are right
though that my intuition was leading me to something like this. However, I
didn't realize that it was not necessary for what I was doing. But this is
very educational too. It made me look up string decode, encode, and
Dan Perl wrote:
Is there a way to convert a regular string to a raw string so that one could
get from '\bblah' to r'\bblah' other than parsing the string and modifying
the escapes?
Assuming you might mean something else, that something else might be:
s = r'no_tab_\t_here'
len(s.split()) ==
On 14 Dec 2004 05:11:07 -0800, rumours say that
[EMAIL PROTECTED] might have written:
>Dan Perl wrote:
>> Yeah, you're right. I got it all twisted in my mind. It's late and
>>I must be getting tired.
>Perl & Twisted in the same thread, that should fool the search engines
>:D
Now, if only Sam R
Dan Perl wrote:
> Yeah, you're right. I got it all twisted in my mind. It's late and
I must
> be getting tired.
>
Perl & Twisted in the same thread, that should fool the search engines
:D
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I recently asked the same question, the response I got was that just use
the string. There is no raw string object so the conversion doesn't
exist. As far as I know, I haven't run into any problem
Take a try. Please let me know if there is any problem with this approach.
Good luck
Dan Perl
Is there a way to convert a regular string to a raw string so that one could
get from '\bblah' to r'\bblah' other than parsing the string and modifying
the escapes?
I am interested in this for the use of regular expressions. I would like to
be able to accept re patterns as inputs either from a
Yeah, you're right. I got it all twisted in my mind. It's late and I must
be getting tired.
Thanks.
Dan
"Brian Beck" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dan Perl wrote:
>> Is there a way to convert a regular string to a raw string so that one
>> could get from '\bb
Dan Perl wrote:
Is there a way to convert a regular string to a raw string so that one could
get from '\bblah' to r'\bblah' other than parsing the string and modifying
the escapes?
There's no such thing as a raw string, only raw string literals. In
other words, it's a syntax to tell the Python i