[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
module?
Can any one help me please. 
thank you

SK


		
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail 


More information about the Tutor mailing list