Questions related to the use of double-quotes in different programming languages.
Questions tagged [double-quotes]
1212 questions
0
votes
2 answers
JRuby statement in a bash script with environment variables
I have a Rails application which uses Resque for a job queue. The Resque worker class is "JobDo" and is in app/workers/job_do.rb
I have a script (jobdo.sh) which will put a job onto the queue:
jruby -e 'load "/home/abc/myapp/app/workers/job_do.rb";…

Jay Godse
- 15,163
- 16
- 84
- 131
0
votes
1 answer
regexp: tw- prefixed words with optional quotation marks
I am struggling to build a regexp to catch words starting in tw (or Tw, or TW) whether they are in between quotes (single or double) or not.
So far '\b[tT][wW][a-zA-Z0-9]*' catches all the tw, Tw, and TW starting words but misses the ones in btw…

jrichalot
- 59
- 1
- 7
-1
votes
1 answer
What is the difference in usage of the two alternate forms of quotation marks?
This may be a typesetting question more than a programming one, but maybe some English major-turned-programmer has the answer.
Sometimes when I copy/paste code from a source, quotation marks copy in a format that doesn't match the rest of the…

Seth Schaffner
- 125
- 1
- 1
- 9
-1
votes
1 answer
Linux Bash variable not storing line breaks
I am working on Debian Stable Linux and I am trying to modify output of following command:
$ apt search zypper
Sorting... Done
Full Text Search... Done
libzypp-bin/stable 17.25.7-1 amd64
openSUSE/SLES package management system library (library…

rnso
- 23,686
- 25
- 112
- 234
-1
votes
2 answers
how to use sed to replace all backslashes with double quote?
I am trying to use this to replace all backslashes with double quotes.
sed -e "s/'\\\\''/\"/g" nomefile
this doesn't do anything.
Input: "prova d\"amico"
Desired output: "prova d""amico"

realtebo
- 23,922
- 37
- 112
- 189
-1
votes
1 answer
Using double quotes in a command assigning it in a variable with double quotes bash
dir="$(find -L "${1:-.}" -mindepth 1 -type d 2>/dev/null|fzf -0)"
why it works even if quoting end is unspecified in bash. This should've show error but worked perfectly.WHY?
Previously I tried
dir="$(find -L \"${1:-.}\" -mindepth 1 -type d…

Rashedul Hasan Rafi
- 23
- 6
-1
votes
1 answer
How does bash parse double quotes and single quotes
I have to implement a minishell written in C for my school homework,and I am currently working on the parsing of the user input and I have a question regarding single quote and double quote.
How are they parsed, I mean many combo are possible as…

dieri
- 23
- 6
-1
votes
1 answer
Netlogo: double quotes with word command
this one should be simple, but..
i would like to define a string in Netlogo which I can then send to the 'run' command. The string needs to include double quotes.
the code below gives "visit Paris"
but I want "visit "Paris" "
'''
to…

Fabio
- 35
- 4
-1
votes
1 answer
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 415 - how to get the double quotes parsed in JSON using json.loads in python?
I have wrote a code like below -
>>> text = "ОБЩЕСТВО С ОГРАНИЧЕННОЙ ОТВЕТСТВЕННОСТЬЮ \"АПК\" \"РАССВЕТ\""
>>> text = text.replace('"', '\"').replace("'", "\'")
>>> data = '{"text": "' + str(text) + '"}'
>>> print(data)
{"text": "ОБЩЕСТВО С…

deepu2711
- 59
- 1
- 7
-1
votes
1 answer
How To Modify 2 Parts Of A String Inside A Variable From A TextBox Input OR another variable (Visual Basic)
I'm trying to get my first VB Program running, i am attempting to run a HTTP POST request, i have it funcional when i hardcode my account details but would like to use the text box as username & password inputs, Im learning as i go and any input for…

Aidan Macgregor
- 3
- 2
-1
votes
1 answer
How to read double quotes (") in CsvReader using c#?
I am trying to read a csv file using the following code. Its throwing an exception if there is double quotes (") in the data. I want to handle all the special chars while reading.
using (TextReader reader = new StreamReader("C:\\test\test.csv"))
{
…

aka baka
- 213
- 2
- 10
-1
votes
1 answer
Firebase e Java
Why in some cases, the firebase node is created as a string with double quotes "" and in another cases as a string with no quotes.
for example:
----dates
|
022022--
|
"022022"--
Thanks for the help

Duda Clash
- 19
- 2
-1
votes
2 answers
How to add quotes to every 2nd word in a string in R
I want to add double quotes around every second word in this single string.
From this
gene_id ENSG00000081237; gene_version 20; transcript_id ENST00000442510; transcript_version 8;
gene_type protein_coding; gene_name CD45A;
to this
gene_id…

DHH
- 97
- 6
-1
votes
3 answers
double quote coin flip
import random
input("You tossed a coin. Select 0 or 1\n" )
random_side = random.randint(0, 1)
if random_side == 1:
print("Heads")
else:
print("Tails")
when I use double quote in 1(if random_side == "1":). It gives me same output not random…

Abhishek Singh Yadav
- 13
- 4
-1
votes
4 answers
How can I remove double quotes from a list in python?
I have the following problem:
I have a string that contains multiple E-Mail adresses.
These adresses are not static. I pull them from my database.
So for example when the adresses are pulled and I print the string the output is:
mails = 'email1',…

Zekra
- 1
- 1