I got my answer

if ( m != None ) :
         subStrPattern1_hasInitialization = m.group(1)


          subStrPattern2_hasRestTillEnd = m.group(2)

         str = subStrPattern1_hasInitialization  +
subStrPattern2_hasRestTillEnd
        strToReplace = "for(" +  pattern + str


This gave me my solution

But to tell u, i have not got that, why i should concatenate and then
only place it . while i was trying the same thing by concatenation it
straight to replace string, it was not working

Any body has reasons ???

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to