Questions related to the use of double-quotes in different programming languages.
Questions tagged [double-quotes]
1212 questions
-3
votes
2 answers
ambiguity between double quotes and single quotes in javascript
var myStr = 'This string has "double quotes" in it. And "probably" lots of them';
The value in using one or the other has to do with the need to escape quotes of the same type. Unless they are escaped, you cannot have more than one pair of whichever…

Shivam Pandey
- 1
- 4
-3
votes
1 answer
How to Find a String Between Specific Keyword and Double Quote
I have a line of string and I need to find the words after a specific keywords and double Quote Character.
Example:
The input string is 'Dim lsParameter as string = Parameters("ThisValue")'
The expected result is ThisValue
I need to save whatever…

nonino_k
- 11
- 3
-3
votes
2 answers
how to write single and double quotes while appending data?
$(".overlayp ul").append('

Sumit Aggarwal
- 831
- 2
- 16
- 29
-4
votes
1 answer
Why this happens
my_variable_name = str("John")
print(my_variable_name)
This is the code for example, now if I happen to add the double quotes around "my_variable_name" in this statement:
print(my_variable_name)
It just simply display whatever is written inside…

Gaurav Kumar
- 3
- 1
-4
votes
1 answer
Is there any way to get strings in python with double quotations by default?
data = f'\u007b"domainNames":{domain_list}\u007d'
response = requests.post(
'https://api.name.com/v4/domains:checkAvailability',
headers=headers, data=data, auth=auth)
The problem is that I'm trying to send a list in 'domain_list'. But it…

Safwan Amin
- 75
- 3
-4
votes
2 answers
Is there a better way to 'doctor' JSON code?
I download some webpage with JSON code embedded into javascript. I need to decode it but it is incorrect JSON and includes single and double quotes which cause error at decode subroutine.
NOTE: JSON extracted as a block into string variable, DATA…

Polar Bear
- 6,762
- 1
- 5
- 12
-4
votes
4 answers
Why is it necessary to put double quotes?
In the code line
editText.setText(firstnum + secondnum + "");
Can anyone explain to me why there are double quotes at the end?

sophin
- 583
- 5
- 11
-4
votes
4 answers
Javascript - Create object where key is surrounded by doublequotes
I have initial array, which should be iterated and new object should be created. Initial array is:
let array = [
{key: "key1", translation: "some text 1"},
{key2: "key2", translation: "some text 2"},
{key3: "key3", translation: "some…
user3681549
-4
votes
1 answer
Insert Double quotes as string
else if(error.equals("Duplicate entry"for key 'PRIMARY'"));
In the above code, I want to insert the " after entry as a string but it is not letting me to do so, please help.

DEVJYOT SIDHU
- 23
- 5
-4
votes
3 answers
Replace double quote in javascript variable string
How to replace all double quotes (") instance from a javascript variable string?
Here's my code
var double_quote_with_string = "Test "Double Quote" Test";
var replace_double_quote = double_quote_with_string.replace(/"/g,…

syntaxcode
- 133
- 2
- 16
-4
votes
1 answer
Regex. Spliting os blank spaces. Accounting for double quoted text
I am using regex to split a string. This is the input:
Value1 Value2 "Val ue3"
The output should be:
Value1
Value2
Val ue3
What regex should be using for this?

Bruno Klein
- 3,217
- 5
- 29
- 39
-6
votes
3 answers
How does source code manage white space and concatenation
In the following code:
$email_body =
"message from $name \n"
"email address $visitor_email \n"
"\n $message";
the fourth line generates a parsing error dues to an unexpected ", but the quotes seem to be correctly paired. …

talvi
- 39
- 10