Questions related to the use of double-quotes in different programming languages.
Questions tagged [double-quotes]
1212 questions
-1
votes
1 answer
How do I escape double quotes in sed?
Trying to figure out how to use a sed command to replace a value when the string i am searching for has double-quotes as part of the string.
I have a config file called ABC.conf that list out the release version like so; "ReleaseSequence": 1555
I…

Noob
- 1
- 1
- 2
-1
votes
2 answers
Could not create file: No such file or directory
I want to create create a qcow2 image for a virtual disk size of 7G so I'm doing virsh_pool=/home/test/abc and then
qemu-img create “${virsh_pool}/foo.qcow2” 7G
But it gives me an error like
Formatting '“”/home/test/abc”/foo.qcow2”', fmt=raw…

Rajat Singh
- 653
- 6
- 15
- 29
-1
votes
1 answer
Single Quotes inside Single Quotes removing Forward Slashes
I have this code:
$profile_image_url = str_replace(" ", "%20", 'https://www.example.com/images/cropped (1).jpg');
$output .= "style='background:url('https://www.example.com/images/" . $profile_image_url . "')no-repeat;'";
The output results…

cpcdev
- 1,130
- 3
- 18
- 45
-1
votes
1 answer
Retain double quotes on registry value
I'm trying to add a value to the registry which contains spaces and for that reason i want to retain double quotes.
I've tried escaping double quotes with '\"' but this had no effect
path_with_spaces = "C:\Users\me\i have…

sparky
- 375
- 6
- 22
-1
votes
1 answer
My python code works in one VM and not in the other ... complaining about quotes
I have 2 VM sessions.
In the VM session A, the script won't run right if I type python
if I don't put python3 the error I get
but if I type python3 it's fine.
When I move this script to my other VM session B, and I try to run it, it is spitting…

Paul Z
- 53
- 6
-1
votes
1 answer
JAVA SCRIPT var with Double Quotes to PHP and back for Auto fill
I have an HTML/PHP form that uses JAVA SCRIPT function to send (POST) an input content to a PHP code which performs a query and gets back to the JAVA SCRIPT function with data to Auto fill additional inputs in the form.
It all works great when the…

Mark.D
- 51
- 1
- 1
- 6
-1
votes
1 answer
Not Able to Recognize Strings and Characters in ANTLr
In my ANTLr code, we should be able to recognize strings, characters, hexadecimal numbers etc.
However, in my code, when I test it like this:
grun A1_lexer tokens -tokens test.txt
With my test.txt file being a simple string, such as "pineapple",…

SeePlusPlus
- 147
- 1
- 8
-1
votes
1 answer
How can I specify double quote string parameter in EL?
Recently, in a EL expression (using #{}), I have tried to pass a String parameter delimited by double quotes as first parameter of a java method using following code
but this line is…

schlebe
- 3,387
- 5
- 37
- 50
-1
votes
2 answers
Why do println(measure + '"'); and println(measure + '\"'); add to measure, while using seperate statements prints correctly?
to test myself in Java, I wrote up a program where I needed to display the contents of double[] measurements, containing: {8.0, 7.7474, 7.4949, 7.7474, 8.0, 7.7474, 7.4949, 7.7474, 8.0}. A simple enhanced for loop and a println() seems to work fine,…

Jgdabble
- 21
- 1
- 3
-1
votes
5 answers
How do I show single and double quotes in a text alert in javascript?
I want a javascript alert that reads, "It's "Hammer" time!"
What is the best code to write this?

Nate Chavin
- 41
- 8
-1
votes
1 answer
Trying to match strings including quotes inside string
Im trying to pass the following regex to javascript but I couldn't achieve passing it. I was the entire afternoon trying to successfully use it for my project, but sadly I couldn't find the way to make this work. Here's the link of the regex:…

Joaco Terniro
- 115
- 1
- 2
- 13
-1
votes
1 answer
Change double quotes to single quotes and order of key values pairs in json
I have json output and I would like to convert it into below format. I'm using ast.literaleval, I would like to have desired sorted by id and name in single quotes. I used ordered dict for desired order but not sure how to convert double quotes to…

Kay
- 7
- 1
- 7
-1
votes
1 answer
Ansible double quotes and variables
I'm trying implement a solution I've found on stackoverflow for truncating all tables in a database.
It works when I run it on terminal command line but unfortunately it does not work on Ansible.
Problematic part is this -e \"truncate table…

mirza
- 5,685
- 10
- 43
- 73
-1
votes
1 answer
Quotation marks in notepad++ won't allow text to transfer to html
My problem is I write a simple code in notepad++ ex.
So "click here!" will turn purple and not show up on the web page.
I seem to have no issue if I do not use the quotation marks, but I figure I…

GerryLast
- 1
- 1
-1
votes
2 answers
Need to remove quotes from text file
I have written below in a batch file to copy a csv file in a folder to txt file and move into our import folder
copy "\\jarvisfs1\groups\InforIFC\Payroll\NEW\*.csv"…

Alex
- 1
- 6