Hi All,
I am trying to use re.sub to pattern match the expression - ("); and replacce it with -- (
Instead it is replacing with )
My code is like this:
queryString.append( "INSERT INTO TBL ( ");
queryString.append( "A1,A2,A3,A4, ");
queryString.append( "B1,B2,B3,B4, ");
queryString.append( "C1,C2 ) VALUES(");
queryString.append( ", ?, ?, ? ,?)");
The output of which would parse the proper insert statement.
Please suggest the pattern match i need to use.
Regards,
Harshitha
I am trying to use re.sub to pattern match the expression - ("); and replacce it with -- (
Instead it is replacing with )
My code is like this:
queryString.append( "INSERT INTO TBL ( ");
queryString.append( "A1,A2,A3,A4, ");
queryString.append( "B1,B2,B3,B4, ");
queryString.append( "C1,C2 ) VALUES(");
queryString.append( ", ?, ?, ? ,?)");
The output of which would parse the proper insert statement.
Please suggest the pattern match i need to use.
Regards,
Harshitha