Issue with Pattern Match (");

Discussion in 'Python' started by harshu010, Jun 18, 2008.

  1. harshu010

    harshu010

    Joined:
    May 23, 2008
    Messages:
    10
    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
    harshu010, Jun 18, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. hiwa
    Replies:
    0
    Views:
    636
  2. Victor
    Replies:
    2
    Views:
    638
    Victor
    May 17, 2004
  3. ekzept
    Replies:
    0
    Views:
    363
    ekzept
    Aug 10, 2007
  4. John Gordon
    Replies:
    13
    Views:
    475
    Ian Kelly
    Dec 20, 2011
  5. Volkan Civelek

    Match doesn't match

    Volkan Civelek, Jul 19, 2006, in forum: Ruby
    Replies:
    4
    Views:
    163
    benjohn@fysh.org
    Jul 19, 2006
Loading...

Share This Page