Questions tagged [quotes]

Computer programming languages' facility for embedding text in source code, also known as String literals

In plain English: String literals can be enclosed in matching single quotes (') or double quotes (").

References:

2134 questions
0
votes
2 answers

javascript: quotes problem: doesn't work?

Why does this not work, but is ok for "Y-m-d"? "; ?> On the page it looks…
ajo
  • 1,045
  • 4
  • 15
  • 30
0
votes
1 answer

Executing Linux commands with double quotes

So I am trying to figure out this weird behavior. $ hello hello -ksh: hello: not found [No such file or directory] $ "hello hello" -ksh: hello hello: not found [No such file or directory] $ echo hello hello hello hello $ `echo hello…
Sidd Singal
  • 559
  • 6
  • 16
0
votes
0 answers

3-layer Nested Quotes (bash)

Exuse: I know there are many questions about nested quotes but the answers to those I found are so specific to the questions that I wasn't able to apply them. I need to use multiple nested bash commands. The first two layers are x-terminal-emulator…
0
votes
2 answers

bash: construct command line parts in function, to be interpreted as separate arguments (including quotes)

I want to perform a shell command like this: convert input.png -pointsize 40 -font "$HOME/Library/Fonts/Droid Sans.ttf" \ -background black -fill red -stroke blue label:"Foo Bar" \ -gravity center -composite output.png But it's part of a script…
RocketNuts
  • 9,958
  • 11
  • 47
  • 88
0
votes
1 answer

Single and Double Quote Issue using GAWK

I have been helped with the following GAWK command line in Windows gawk "{a = gensub(/([0-9]{6} [0-9]{6} [0-9]{4}).*itemId=, "\\2 \\1", "g", $0); b = split(a, c, " "); if (c[1] in result) result[c[1]] = gensub(/(.+),(.+)/, "\\1," c[2] " " c[3] " "…
Fabby
  • 71
  • 8
0
votes
2 answers

Java : add quotes to data in a CSV file

I am trying to add quotes to data in a CSV file. Below is the approach i have done it. I am sure there is a simpler way using regex or other methods. Would like to know that. public List addQuotes2List(List list, String…
bobby.dreamer
  • 366
  • 4
  • 19
0
votes
2 answers

call program with arguments from an array containing items from another array wrapped in double quotes

(This is a more specific version of the problem discussed in bash - expand arguments from array containing double quotes .) I want bash to call cmake with arguments from an array with double quotes which itself contain items from another array. Here…
bibermann
  • 77
  • 1
  • 7
0
votes
1 answer

Everyday new content on Application

I have a list of quotes. I want to have a label that changes every 24H to a new Quote. How can I do this? Like how can I manage a day? I know I could just use an API but I want to use my own quotes and I am not able to create an API on my own…
Glatteisen
  • 163
  • 1
  • 3
  • 11
0
votes
1 answer

Python not recognizing quotes

What I want to do is very straight forward. Retrieve text from a file If the text contains any quotes, get the text inside the quotes. To do that I am using this regex, borrowed from another post. re.findall('"([^"]*)"', text) The problem I…
Tyler Bell
  • 837
  • 10
  • 30
0
votes
4 answers

Parsing MySQL rows to JavaScript with PHP

Hi guys can't seem to use MySQL row values in JavaScript. I've tried all kinds of quote and double-quote combinations. $sql = "SELECT desk_id, desk_x, desk_y FROM desks"; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row =…
Adam Stück
  • 107
  • 11
0
votes
4 answers

PHP - Echoing multiple nested quotes of HTML

I'm attempting to echo the following line of HTML through PHP echo "

".$formattedDate." @ $time

"; I don't get an error. But…
slightly_toasted
  • 335
  • 5
  • 18
0
votes
1 answer

Can I use jquery selector quote child iframe's global variable?

I need create a iframe dynamically in my page,when I closed it ,it will be removed from my page. (In fact it jquery plugin "fancybox") It always the last iframe.I want quote the page's global variable in the iframe.So I think the…
hh54188
  • 14,887
  • 32
  • 113
  • 184
0
votes
0 answers

Valid MYSQL SELECT Query not working on PHP

Ok, so here is my headache: I got a database that contains a lot of texts (big ones) and I am running a VALID MYSQL query. I wont post the BIG text here because it is useless, lets do the following. My PHP is listening on UDP por 8000 My software…
0
votes
1 answer

Python and MySQL query with quotes

With a script in Python3, after extracting some strings from a file, they should be used as data to be inserted into a MySQL database as follows: query1 = """INSERT INTO {:s} VALUES ({:s}, {:s}, {:s},…
BowPark
  • 1,340
  • 2
  • 21
  • 31
0
votes
2 answers

adding quotes to javascript array list in which each element is in a quote like below

How do I change this array list: var array1 = ["test, test1"]; to show like below: var array2 = ["test", "test1"]
olayinka
  • 3
  • 4
1 2 3
99
100