Questions tagged [single-quotes]

Questions related to the use of single-quotes in different programming languages.

352 questions
0
votes
1 answer

Error when using single quotes in mysql

var comma = ","; var querys = "insert into movie values (" + "'" + movid + "'" +comma + "'" + name + "'" + comma + "'" + genere + "'" + comma + "'" + director + "'" …
Jet Pack
  • 51
  • 9
0
votes
1 answer

How do I do search and replace within a search and replace perl statement?

I’m using bash shell with Perl v 5.18.2. I’m running this statement perl -pi -e "s/([^,]+),([^,]+),([^,]+),(.*[^\n]+)\n/select '\$1', u.id, u.first_Name, u.last_name, u.url FROM user u, user_role ur where u.id = ur.user_id and lower(ur.role_id) =…
Dave
  • 15,639
  • 133
  • 442
  • 830
0
votes
2 answers

I need to parse a string using javacc containing single quotes as part of the string

I have defined grammar rules like TOKEN : { < SINGLE_QUOTE : " ' " > } TOKEN : { < STRING_LITERAL : " ' " (~["\n","\r"])* " ' "> But I am not able to parse sequences like 're'd' .I need the parser to parse re'd as a string literal.But the…
S Shruthi
  • 35
  • 4
0
votes
2 answers

Python - Remove Single Quotes From List Items When Adding To Dictionary

I have tried all the recommendations on similar posts, but have had no luck. I have a list of items that I'm using to create values for a list of dictionaries. That list ultimately becomes a JSON object, so I can't have the single quotes around each…
Nick Miller
  • 29
  • 1
  • 12
0
votes
2 answers

Issue with double quote and quotes

I am creating a list of links in javascript but it appears that the browser are translating some caracters This is my code vLinea += "
Corobori
  • 303
  • 3
  • 13
0
votes
1 answer

Ms-Access 2010 Single quote syntax error

I'm trying to create a plant database using MS-Access 2010. I'm trying to open a form by clicking on a button. From what I've researched online, I realize the problem lies with the single quotes, but I don't understand coding enough to figure our…
0
votes
1 answer

Javascript : Escaping single quote in function parameter doesn't work

In a span tag, I have a function where parameter value can be a string with single quote. But even if I escape single quote by antislash, browser console displays error. Here my code :