Questions related to the use of double-quotes in different programming languages.
Questions tagged [double-quotes]
1212 questions
54
votes
9 answers
json parse error with double quotes
A double quote even if escaped is throwing parse error.
look at the code below
//parse the json in javascript
var testJson = '{"result": ["lunch", "\"Show\""] }';
var tags = JSON.parse(testJson);
alert (tags.result[1]);
This is throwing parse…

Varun
- 4,054
- 6
- 31
- 54
44
votes
4 answers
Are double "" and single '' quotes (always) interchangeable in R?
This is perhaps rather a minor question...
but just a moment ago I was looking through some code I had written and noticed that I tend to just use ="something" and ='something_else' completely interchangeably, often in the same function.
So my…

Stephen Henderson
- 6,340
- 3
- 27
- 33
41
votes
1 answer
How to escape double quotes in as a parameter to an NUnit TestCase?
I tried writing the following TestCase for an NUnit test written in VB.net:
")>
Public Sub GetNode_GivenSomeNodeId_ReturnCorrectNode(ByVal nodeId as String,
…

Kjartan
- 18,591
- 15
- 71
- 96
40
votes
4 answers
Adding quotes to argument in C++ preprocessor
I'd like to pass the name of an include file as a compiler argument so that I can modify a large number of configuration parameters. However, my C++ build is via a makefile like process that removes quotes from arguments passed to the compiler and…

Jonathan Zingman
- 401
- 1
- 4
- 3
40
votes
5 answers
Adding double quote delimiters into csv file
I have a number of text files which contain radio programme titles where each item is on a separate line, e.g.:
15 by 15
15 Minute Drama
Adrian Mole
Afternoon Drama
Afternoon Reading
etc
I would like to add double quotes as delimiters to each line,…

user338034
- 433
- 1
- 4
- 8
39
votes
4 answers
Why Spring MessageSource arguments are not filled correctly in some locales?
mailconfirm.mail.body=
Hi, {0}!
\ To confirm your email address click on the confirmation link given bellow. If clicking on the link doesn't work, copy and paste the link in a new browser tab.
Rihards
- 10,241
- 14
- 58
- 78
37
votes
3 answers
Escaping separator within double quotes, in awk
I am using awk to parse my data with "," as separator as the input is a csv file. However, there are "," within the data which is escaped by double quotes ("...").
Example
filed1,filed2,field3,"field4,FOO,BAR",field5
How can i ignore the comma ","…

joomanji
- 473
- 1
- 4
- 6
37
votes
7 answers
simple error due to use of double quotes in a jsp file
I have the following line of code in a JSP File in my web app that is giving an error:
"/>
The error message that I get…

Arvind
- 6,404
- 20
- 94
- 143
34
votes
6 answers
How to extract a string from double quotes?
I have a string:
This is a text, "Your Balance left $0.10", End 0
How can I extract the string in between the double quotes and have only the text (without the double quotes):
Your Balance left $0.10
I have tried preg_match_all() but with no…

conandor
- 3,637
- 6
- 29
- 36
33
votes
7 answers
How to use a string with quotation marks inside it?
I have the following string, which I want to execute as a process:
Rundll32 Printui.dll,PrintUIEntry /ia /K /q /m "SHARP MX-5500N PS" /h "Windows NT x86" /v 3 /f sn0hwenu.inf
However, given the presence of quotation marks, I can't insert this string…

blade44
- 447
- 1
- 4
- 7
33
votes
2 answers
Convert all types of smart quotes with PHP
I am trying to convert all types of smart quotes to regular quotes when working with text. However, the following function I've compiled still seems to be lacking support and proper design.
How can I properly get all quote characters…

Xeoncross
- 55,620
- 80
- 262
- 364
32
votes
7 answers
How to Insert Double or Single Quotes
I have a long list of names that I need to have quotes around (it can be double or single quotes) and I have about 8,000 of them. I have them in Excel without any quotes and I can copy all of the names and paste them no problem but there are still…

three3
- 2,756
- 14
- 57
- 85
29
votes
8 answers
Add PHP variable inside echo statement as href link address?
I'm trying to use a PHP variable to add a href value for a link in an echo statement.
Here's a simplified version of the code I want to use. I know that I can't just add the variable into the echo statement, but I can't seem to find an example…

jasonbradberry
- 853
- 2
- 17
- 30
26
votes
4 answers
Nesting with three levels of quotations
I am trying to create a php variable that has three levels of nested quotes. How do I make a third level around "tackEvent", "downloads", "all", and "nofilter"? The double quotes that I have there are not working.
$outputList .= "

JSW189
- 6,267
- 11
- 44
- 72
25
votes
2 answers
Make H2 treat quoted name and unquoted name as the same
H2 seems to make a difference between name with quote and name without quote. Is there a way to make it treat them the same way?
Here's the tests that I've done :
CREATE TABLE test (dummy INT);
CREATE TABLE "testquote" (dummy INT, "quotedDummy"…

Drahakar
- 5,986
- 6
- 43
- 58