Questions tagged [quotation-marks]
271 questions
1
vote
1 answer
regex find a line have wrong quotation marks
hi i need help to find a line have error quotation marks.
1 "many word " "many word" "many word "
2 "many word " " <-Error quotation
3 "many word " "many word " " many word " " many word " " <-Error quotation
4 """ but this quotation not…

Mr.Trieu
- 414
- 2
- 6
- 16
1
vote
1 answer
Filter out words depending on surrounding punctuation
Objective:
I'm looking for a way to match or skip words based on whether or not they are surrounded by quotations marks ' ', guillemets « » or parentheses ( ).
Examples of desired results:
len(re.findall("my word", "blablabla 'my word' blablabla"))…

Y H R
- 595
- 5
- 15
1
vote
4 answers
removing unwanted quotes from a string Javascript
I have a string that outputs like this:
"firstName" "lastName"
I need to the output to be like
"firtName lastName"
or else I get bad string request. I have tried different regex combinations that could achieve that however so far I can remove the…

Fighithebird
- 37
- 1
- 6
1
vote
0 answers
Output table from SQL into csv format and add quotation marks around a column
I am want to output a table from SQL as csv but I want to add quotation marks around the last column.
The name of the table I have in SQL is dbo.temp_table:
The output I want is a csv file, that when opened in notepad, the last column has double…

Cristina
- 21
- 3
1
vote
5 answers
Output should look like a quotation
I am trying to print a quotation and the name of the author. My output should look something like the following (including the quotation):
Albert Einstein once said, "A person who never made a mistake never tried anything new."
I tried this:
quote…

Maurya
- 19
- 4
1
vote
1 answer
Sending a string that contains quotations to a file with VBA
I am trying to use VBA build a .jet file, but when I try to append, two possible problems appear. Either it includes all double quotes including the double double quotes like you would normally do in, say, a msgbox, or the string wont work if i…

Brandon Redmond
- 39
- 8
1
vote
2 answers
In Quanteda, how can we match quotation marks literally?
Brief question as I'm trying to match quotation marks in a sentence token using Quanteda's tokens_lookup() function and valuetype="regex". Based on the information provided here on the regex flavor Quanteda uses, I thought the way to go with would…

Dr. Fabian Habersack
- 1,111
- 12
- 30
1
vote
3 answers
How to remove unnecessary single quotation marks (') from column names in a R data frame?
unfortunately I have got colnames, which all have additional single quotation marks like here:
x <- data.frame(c(11,21,31),c(12,22,32),c(13,23,33))
colnames(x) <- c("'A'","'B'","'C'")
So my question is, if I can get rid of those "'" for my entire…

LxndrF
- 25
- 8
1
vote
2 answers
JavaScript splitting String with multiple quotation marks and different IDs
I have Strings which look like this one, but with different Id.
[{"Id":33,"Title":"Sweden, Stockholm - Järfälla: Dienstag, 31. Januar 2017 - Mittwoch, 1. Februar 2017"}]
How can I split them so that they become:
Sweden, Stockholm - Järfälla:…

stepbysteptomathpro
- 455
- 1
- 7
- 16
1
vote
2 answers
How do I determine how many parameters to use in a function
I'm new to Python and have been trying to learn Python from Codeacademy. This is my first post here.
Here is the sample code (answer) given by Codeacademy.
proprietary_terms = ["she", "personality matrix", "sense of self", "self-preservation",…

Gojilla
- 81
- 1
- 7
1
vote
4 answers
Equivalent function to excel's replace
I would like to add quotation marks to hundreds of words (surrounded by blank spaces) and separate them by a comma. Preferably, by using only one or a few functions to avoid a manual replacement due to temporal expenditure.
Exemplary Problem:
words…

Maria26
- 65
- 4
1
vote
0 answers
r - roxygen documentation - escape quotation marks on separate lines
I am working on documentation for a function in my package. Below is the section of the help file that throws errors with roxygen2:
#' Solve the Colebrook-White equation to obtain the Darcy-Weisbach friction factor
#'
#' This function \"provides the…

iembry
- 962
- 1
- 7
- 23
1
vote
1 answer
python: Removing all kinds of quotation marks
I have the following string:
txt="Daniel's car é à muito esperto"
I am trying to remove all kinds of quotation marks.
I tried:
txt=re.sub(r"\u0022\u201C\u201D\u0027\u2019\u2018\u2019\u0060\u00B4\'\"", ' ', txt)
I expected:
"Daniel s car é à muito…

DanielTheRocketMan
- 3,199
- 5
- 36
- 65
1
vote
1 answer
Is there a simple way to represent quotation marks in a xsl-stylesheet?
I want to output an XML File. In this XML File there is a tag with attribute-content inside quotation marks. How do i have to alter the XSL-Stylesheet to accomplish this?
I didn't find any other entry here that solves this problem.
How do I create…

rialisuw
- 27
- 1
- 6
1
vote
2 answers
sql server unclosed quotation mark because insert a string with 's
I am trying to write extended properties to each column of a table from python.
Here is my code:
for i in dat.columns:
sql_query = """\
EXEC sys.sp_addextendedproperty
@name = N'Description',
…

Eleanor
- 2,647
- 5
- 18
- 30