Questions tagged [quotation-marks]

271 questions
0
votes
1 answer

Put not editable text with quotation marks in a string variable

I'm writing a function to scrape data from a website using xpath strings like this: //*[@id="mw-content-text"]/div/table[1]/tbody/tr[14] As Obvious, when I assign this string to a variable I get a syntax error due to the presence of the quotation…
BSanders
  • 3
  • 3
0
votes
1 answer

bash reading and writing a config file with an unusual layout

Question 1 I have a config file written by a program which I want to overwrite the values by running a script in terminal. The config file is laid out like so (there is probably a name for this format, but I don't know what it is): name_1 =…
0
votes
2 answers

How can i save a String with double quotes from Java's scanner

The user input a String through the scanner and the format of String is "Testing" (quoted with “”) . Just like C:\> "Testing" I'd like to save the text as a String without double quotes. How do I catch the text in the middle of quotes?
Tik
  • 9
  • 2
0
votes
2 answers

How to parse a .csv file with quotation marks in C

Lets say the string im trying to parse reads "Smith, John",Data1,Data2,Data3 I could also get lines that read Dave, Data1,Data2,Data3 so I have the if statement line is the line of text fgets()'d from the file, but I think that works The rest…
0
votes
2 answers

How to get rid of syntax error that arises with multiple single quotation marks in the command

I have a command to obtain the last logged in time of a certain ubuntu user and I need the output to store it elsewhere so when I run this in my python script, I get a syntax error but when I ssh into remote server and execute the command, there's…
nlp
  • 109
  • 1
  • 4
  • 19
0
votes
1 answer

JSF 1.2 inputText truncates text on quotation marks

JSF 1.2 inputText normally is able to show value with quotation marks. In the current system these are treated as part of HTML and therefore the source code gets truncated. Do you have any hints what could cause this issue? Thanks! The input text…
powerweb
  • 1
  • 3
0
votes
1 answer

Python double quotation syntax issue

This is my code: for i in range(0, row_count): if counter
Amin
  • 1
  • 1
0
votes
2 answers

Splitting a string into separate values when one part contains comma between quotationmarks (Python)

First of all, I'm a newbee at python. I read data from a file on harddrive, no problem there. It's when using split() my problem occur. Example of how a line looks like in the original file: 0,0,1,5,20,"Good for you, Helen." The problem is the comma…
Peter
  • 1
  • 1
0
votes
3 answers

Quotation marks appear with some strings and not others. How can I make all strings the same?

I am reading in a csv file to a dictionary, transforming the data as needed, and writing it to a new csv file. The original csv file has a column where some strings (words) are in double quotation marks while other strings are not in quotation…
TJE
  • 570
  • 1
  • 5
  • 20
0
votes
1 answer

Escaping character from Windows to WSL

I am trying to send the following line : trap 'test -n "$SSH_AUTH_SOCK" && eval `/usr/bin/ssh-agent -k`' 0 to a file from Windows to WSL. Here is what I've got so far : bash -c "echo -e 'trap test -n \"\$SSH_AUTH_SOCK\" && eval…
0
votes
4 answers

mySQL problem when retrieving result with quotation marks

I'm having a problem with an SQL query on a php page. I'm pretty new to php so stick with me. I have successfully created a query to select everything, but I want to include a WHERE in the query. The trouble is that the result includes quotation…
Tom
  • 12,776
  • 48
  • 145
  • 240
0
votes
2 answers

VBA, string arguments in UDF that does not have quotation marks - how to access their value?

My function in a VBA is: Function myFunc(a) myFunc = a End Function When I use this function in Excel sheet in this way =myFunc("abc"), it is working, but when I use formula without pair of quotating marks =myFunc(abc), then I'm receiving…
0
votes
2 answers

SyntaxError: invalid syntax (when running python code from shell)

In Jupyter Notebook my Code runs fine, but when I run it from shell i get a syntax error at this part of my code: res = f'"x"'+" "+f'"y"'+" "+f'"t"'+" "+f'"id"'+" "+f'"id2"' ^ SyntaxError: invalid syntax However I need the String res to…
Mauritius
  • 265
  • 1
  • 8
  • 23
0
votes
2 answers

How to write quotation marks to a .txt file using fwrite

I have an html form where users can submit data. When they submit I am taking that data and writing it to a .txt file. I am having trouble adding quotation marks around my data. I need it to do the following when it writes to the txt file. $name =…
Jason
  • 1
  • 1
0
votes
1 answer

Remove quotation marks when exporting

How do you remove quotation marks then exporting String values of multiple words? For example: "Compact Lamber" Amazonka Eri "AM 10-6-7" Should be: Compact Lamber Amazonka Eri AM 10-6-7 Thank you!
user628186