[Tutor] expand

kumar s ps_python at yahoo.com
Tue Aug 10 17:40:34 CEST 2004

Dear group, 
I am looking into  a code by a friend of mine.  

x = re.comile("XXXX")
x_match = x.search(string)
y = int(x_match.expand("\\3"))
y1 = int(x_match.expand("\\5"))

I did not understand what .expand is doing here. What
is it doing. is it same as expandtabs method in string
Can any one help me please. 
thank you


Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.

More information about the Tutor mailing list