how to format a return value by using re.sub(regx,rep1,str)?

dongdong dongdonglove8 at
Sat Mar 25 09:51:58 CET 2006

for example:
 re.sub('<a( [^>]+)+\s?>[^<^>]*</a>','',' asd ga<a target="_blank"
href="" class="wordstyle"> asdgasdghae rha</a>')

I wish to get the return value "asd ga asdgasdghae rha",how do do?
I have a impression on "%" and "{number}",but forgot how to use them.

More information about the Python-list mailing list