Questions related to the use of double-quotes in different programming languages.
Questions tagged [double-quotes]
1212 questions
7
votes
1 answer
Scala Regular Expressions (string delimited by double quotes)
I am new to scala. I am trying to match a string delimited by double quotes, and I am a bit puzzled by the following behavior:
If I do the following:
val stringRegex = """"([^"]*)"(.*$)"""
val regex = stringRegex.r
val tidyTokens =…

gbgnv
- 265
- 3
- 8
7
votes
6 answers
Remove double quote in json_encode()
I want remove double quote in my json_encode, that is my code:

jordiAnd
- 127
- 1
- 1
- 8
7
votes
4 answers
What does ' ', and " ", and no quotes mean in Javascript?
I realized I've been switching between them with no understanding as to why, and am finding it hard to search for.

expiredninja
- 1,397
- 4
- 25
- 45
6
votes
1 answer
CSV Helper, Read File With Double Quotes in Field Data
I need some help ion CSV parsing with CSV Helper in C#
my example file is
"SKU","Title","URL","BP","SP","NumberOf","Wid1","Wid2","Wid3"
"Big Corp","CRM updates","test","0","0","0","0","0","0"
"Big Corp 1","CRM "test"…

Ali
- 1,015
- 14
- 40
6
votes
3 answers
replacing doublequotes in csv
I've got nearly the following problem and didn't find the solution. This could be my CSV file structure:
1223;"B630521 ("L" fixed bracket)";"2" width";"length: 5"";2;alternate A
1224;"B630522 ("L" fixed bracket)";"3" width";"length: 6"";2;alternate…

Karsten
- 61
- 1
6
votes
1 answer
Why isn't tilde (~) expanding inside double quotes?
I want to check whether or not the hidden .git folder exists. First thought was to use:
if [ -d "~/.git" ]; then
echo "Do stuff"
fi
But the -d apparently does not look for hidden folders.

Swifting
- 449
- 1
- 5
- 19
6
votes
2 answers
Performance: " or ' PHP
I'm working on a big project in php and I need to make sure it's all fast. So I'm wondering: what is faster to use, " or ' ? (Eg: $_SESSION['example'] or $_SESSION["example"])

Marnix Bouhuis
- 430
- 1
- 6
- 15
6
votes
4 answers
Using quotation marks in Javascript with innerHTML
I have written some code to update the player on the story as it progresses. When the player clicks a button they are greeted with some new text and some more options. So far so good, but when I pass a function call in with a parameter attached, I…

Peter David Carter
- 2,548
- 8
- 25
- 44
6
votes
3 answers
Custom SerDe not supported by Impala, what's the best way to query files in CSV w/double quotes?
I have a CSV data with each field surronded with double quotes. When I created
Hive table used serde 'com.bizo.hive.serde.csv.CSVSerde'
When above table is queried in Impala I am getting error SerDe not found.
I added the CSV Serde JAR file in…

prasannads
- 609
- 2
- 14
- 28
6
votes
2 answers
Is there any difference in JSON Key when using single quote and double quote?
I ran two pieces of javascript codes in a online JS running platform:Website Link
pets = '{'pet_names':[{"name":"jack"},{"name":"john"},{"name":"joe"}]}';
var arr = JSON.parse(pets);
alert(arr.pet_names[1].name);
Code with double quotes…

Haoyu Chen
- 1,760
- 1
- 22
- 32
6
votes
2 answers
What is the correct way to support apostrophes in javascript when building up html?
i have the following code:
var name = "Joe O'Neal";
var row= [];
row.push(
"
" + name +…

leora
- 188,729
- 360
- 878
- 1,366
6
votes
2 answers
Encode double quotes inside XML element using LINQ to XML
I'm parsing a string of XML into an XDocument that looks like this (using XDocument.Parse)
- Here is "Some text"
Then I manipulate the XML a bit, and I want to send it back out as a string, just like it came…

davekaro
- 6,233
- 4
- 28
- 22
6
votes
1 answer
Remove double quotes from the strings present inside the arrays using javascript
I have an array like this:
array = ["apple","orange","pear"]
I want to remove the double quotes from the beginning and end of each one of the strings in the array.
array = [apple,orange,pear]
I tried to loop through each element of the array and did…

user2844540
- 61
- 1
- 2
- 6
6
votes
2 answers
Escape single quotes ssh remote command
I read any solutions for escaping single quotes on a remote command over ssh. But any work fine.
I'm trying
ssh root@server "ps uax|grep bac | grep -v grep | awk '{ print $2 }' > /tmp/back.tmp"
AWK doesn't work:
ssh root@server "ps uax|grep bac |…

abkrim
- 3,512
- 7
- 43
- 69
6
votes
2 answers
grep pattern single and double quotes
Is there any difference between enclosing grep patterns in single and double quotes?
grep "abc" file.txt
and
grep 'abc' file.txt
I'm asking since there's no way I could test all possible cases on my own, and I don't want to stumble into a case…

Mika H.
- 4,119
- 11
- 44
- 60