Issue with Pattern Match (");

Joined
May 23, 2008
Messages
10
Reaction score
0
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top