re sub help

s99999999s2003 at s99999999s2003 at
Sat Nov 5 08:53:35 CET 2005

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 =

t = re.compile(r"\[startdelim\](.*)\[enddelim\]")

but it gives me []. it's the "\n" that prevents the results.
why can't (.*) work in this case? Or am i missing some steps to "read"
in the "\n"..?

More information about the Python-list mailing list