On 4 Nov 2005 22:49:03 -0800, [EMAIL PROTECTED] wrote:
>hi
>
>i have a string :
>a =
>"this\nis\na\nsentence[startdelim]this\nis\nanother[enddelim]this\nis\n"
>
>inside the string, there are "\n". I don't want to substitute the '\n'
>in between
>the [startdelim] and [enddelim] to ''. I only want t
[EMAIL PROTECTED] wrote:
> hi
>
> i have a string :
> a =
> "this\nis\na\nsentence[startdelim]this\nis\nanother[enddelim]this\nis\n"
>
> inside the string, there are "\n". I don't want to substitute the '\n'
> in between
> the [startdelim] and [enddelim] to ''. I only want to get rid of the
> '\n
[EMAIL PROTECTED] writes:
> i am still interested about using re, i find it useful. am still
> learning it's uses.
> so i did something like this for a start, trying to get everything in
> between [startdelim] and [enddelim]
>
> a =
> "this\nis\na\nsentence[startdelim]this\nis\nanother[enddelim]thi
<[EMAIL PROTECTED]> wrote:
> i am still interested about using re, i find it useful. am still
> learning it's uses.
> so i did something like this for a start, trying to get everything in
> between [startdelim] and [enddelim]
>
> a =
> "this\nis\na\nsentence[startdelim]this\nis\nanother[enddelim]t
thanks for the reply.
i am still interested about using re, i find it useful. am still
learning it's uses.
so i did something like this for a start, trying to get everything in
between [startdelim] and [enddelim]
a =
"this\nis\na\nsentence[startdelim]this\nis\nanother[enddelim]this\nis\n"
t = re
[EMAIL PROTECTED] writes:
> hi
>
> i have a string :
> a =
> "this\nis\na\nsentence[startdelim]this\nis\nanother[enddelim]this\nis\n"
>
> inside the string, there are "\n". I don't want to substitute the '\n'
> in between
> the [startdelim] and [enddelim] to ''. I only want to get rid of the
> '\n
[EMAIL PROTECTED] writes:
> hi
>
> i have a string :
> a =
> "this\nis\na\nsentence[startdelim]this\nis\nanother[enddelim]this\nis\n"
>
> inside the string, there are "\n". I don't want to substitute the '\n'
> in between
> the [startdelim] and [enddelim] to ''. I only want to get rid of the
> '\n
hi
i have a string :
a =
"this\nis\na\nsentence[startdelim]this\nis\nanother[enddelim]this\nis\n"
inside the string, there are "\n". I don't want to substitute the '\n'
in between
the [startdelim] and [enddelim] to ''. I only want to get rid of the
'\n' everywhere else.
i have read the tutorial