backreference

read-the-signature at send-spam-to-dev-null.com read-the-signature at send-spam-to-dev-null.com
Fri Jan 10 10:42:09 EST 2003


Hi all,

I'm struggling a little with backreferences in the re-module. I read the
docs and browsed the web but didn't find a solution for my problem yet. The
idea is simple: given a line with punctuation, separate the punction from
the word it is 'attached' to. For example:

    "Hello, how are you today?"

would become

    "Hello , how are you today ?"

I've been strugglin' with it for about half an hour. Guess it's time to ask
for help :) Any suggestions?

    Yours

        Bas

-- 
b a s {dot} v a n g i l s {at} c s {dot} k u n {dot} n l
BOFH excuse #139:
UBNC (user brain not connected)




More information about the Python-list mailing list