Questions tagged [quotation-marks]

271 questions
1
vote
3 answers

Excel 2007 vba range.find method can't locate cell containing: 8" (2 chars long, pronounced: 8 inches)

In a particular 1-column-wide range in a spreadsheet I need to use Excel 2007 VBA's range.find method to locate a text-valued cell containing the 2-character long value: 8" (pronounced in the US as Eight Inches). The .find method is in a sub that…
Dave 2.71828
  • 115
  • 10
1
vote
4 answers

Perl command line regex with quotation mark

I have a number of txt (*.log) files containing lines of this type: ... Mismatched '9:132170673': f[G,T] = [0.32,0.68] Mismatched '9:132228706': f[C,T] = [0.27,0.73] Possible strand flip for '9:132280822': f[C,G,T] = [0.16,0.00,0.84] ... I am trying…
Ekan
  • 11
  • 1
1
vote
2 answers

Syntax error on opening quotation mark

I'm trying to run a script for exercise 3.3 in the book Think Python: Problem: Python provides a built-in function called len that returns the length of a string, so the value of len('allen') is 5. Write a function named right_justify that takes a…
Brisanth
  • 13
  • 1
  • 3
1
vote
1 answer

Using paste and substitute in combination with quotation marks in R

Please note that I already had a look at this and that but still cannot solve my problem. Suppose a minimal working example: a <- c(1,2,3) b <- c(2,3,4) c <- c(4,5,6) dftest <- data.frame(a,b,c) foo <- function(x, y, data = data) { data[,…
iraserd
  • 669
  • 1
  • 8
  • 26
1
vote
2 answers

How to parse quotation marks and comma in c++

I have a huge file to parse. Previously, it was separated by either space or comma and I used sscanf(string, "%lf %lf ", &aa, &bb); to get the data into my program. But now the data format is changed to "122635.670399999","209705.752799999", with…
KuN
  • 1,143
  • 18
  • 23
1
vote
3 answers

Using wildcards and quotation marks in ssh

I have a file that I want to grep out lines with strings like "Nov 30" or "Nov 30" (basically I don't want to specify the number of spaces in the middle. In the terminal this would be fine, I'd just do: grep 'Nov * 30' file However, it'd be nice…
user5866
  • 11
  • 2
1
vote
2 answers

Why use quote tags when quotation marks will do?

I'm new to coding and have a trivial question: Why is it necessary to use the quote tag when it's easier to just write out the quotation marks in the text?
Nick-at-Nite
  • 11
  • 1
  • 3
1
vote
2 answers

Is it possible to preserve quotations by storing $@ into another variable?

If I have this on the command line: bin/my_file --name "this name with whitespace" dir/some_file Then in my script: full_cmd="$@" # later... "$full_cmd" The quotation marks are not preserved. This is the closest I've come: app=$1 shift $app…
dgo.a
  • 2,634
  • 23
  • 35
1
vote
1 answer

Matching "..." = "..." in Python via Regex

I'm quite bad with Regexp stuff, so I can't figure out why this does not work. I simply want to match the two strings within an assignment/equation, something like this: "string1" = "string2" In this case, I'd expect "string1" and "string2" to be…
bompf
  • 1,374
  • 1
  • 18
  • 24
1
vote
1 answer

php file() function creates quotation marks and commas

I'm trying to write some php-code that takes $_GET-data as an input and saves it into a csv-file. When running the code more than once my csv-file looks like this: Date,Time,Temperature,"Air Humidity","Soil Humidity",Light,"Wind Direction","Wind…
1
vote
2 answers

Search for quotes with regular expression

I'm looking for a way to search a text file for quotes made by author and then print them out. My script so far: import re #searches end of string print re.search('"$', 'i am searching for quotes"') #searches start of string …
aromamode
  • 29
  • 1
  • 2
  • 5
0
votes
3 answers

replace symbol in javascript

Does anyone know how can I replace this 2 symbol below from the string into code? ' left single quotation mark into ‘ ' right single quotation mark into ’ " left double quotation mark into “ " right…
Jin Yong
  • 42,698
  • 72
  • 141
  • 187
0
votes
2 answers

quotation marks in a javascript bookmarklet

I wrote a javascript bookmarklet which works well. It is rather long and it contains many single and double quotation marks as in the following toy example: javascript:html="example";document.write(html); Now I have to…
tic
  • 4,009
  • 15
  • 45
  • 86
0
votes
6 answers

Escaping MySQL Query issue

I'm terribly bad at keeping MySQL queries straight, but that aside I have one query working for some data input, but not all. My guess is quotation marks getting escaped where they should be. I have the entire query string get escaped at the same…
0
votes
2 answers

JQuery search by ID if ID has a quotation mark

I'm trying to look for a certain html element by its ID, which has a quotation mark in it. When the script looks for the element it throws this error: Uncaught Error: Syntax error, unrecognized expression: #Bel'Veth In advance, I can't use another…