Questions tagged [single-quotes]

Questions related to the use of single-quotes in different programming languages.

352 questions
-3
votes
1 answer

How to solve using single quotes within double quotes within the $content = ' '

I am getting an error because of the single quotes that are within the double quotes, and everything is within the single quotes of the $content variable. How can this be solved please? $content = ' setTimeout("finishAjax('usernameResult',…
jbm59er
  • 35
  • 1
  • 3
-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…
-3
votes
3 answers

python regex find all single qutoes inside single quotes

can you help me with regex to find all single quotes inside single quotes? IE 'sinead o'connor','don't don't','whatever' Thanks for any advice.
jurkij
  • 155
  • 2
  • 9
-3
votes
1 answer

python add string to list ,how to delete single quotes in List?

I hava get a list of string and save to csv file imagesList=['img/201507/27/e731.gif','img/201507/29/e771.png'] myCSV =csv.writer(open('data.csv', 'wb')) myCSV.writerow([imagesList]) open csv file like this: "['img/201507/27/e731.gif',…
ivae
  • 37
  • 7
-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…
-5
votes
1 answer

Add single quotes in a string array javascript

I been searching for the solution but can't find it... I have the following array with the following output: ['Fruits, Cars, Clothes, Shoes'] But I need the that array to output the following: ['Fruits', 'Cars', 'Clothes', 'Shoes'] I already tried…
Popas
  • 80
  • 1
  • 2
  • 8
1 2 3
23
24