Questions tagged [quotation-marks]

271 questions
3
votes
2 answers

How to find two quotation marks in a string

Im trying to search a file and see if any line contains the word Description1 AND if somewhere on that particular line two quotation marks appears directly after each other. I have found various ways to delete or replace them but I want to keep…
3
votes
2 answers

Unmatched quotation mark issue in SAS

As is known to all, SAS needs special care to quotation marks inside a sentence. E.g. %let quoted="I'd like to"; data temp; set temp; quoted=""ed"; run; error is encounterred when submitting. In fact I need to copy data to one dataset…
mj023119
  • 675
  • 5
  • 12
  • 19
3
votes
1 answer

How to simultaniously search for two possible quotation marks with regular expressions?

I want to extract words in quotation marks if they are one or two words long. This works with the following Code. mysentences = ['Kids, you "tried" your "best" and you failed miserably. The "lesson" is, "never try."', "Just because…
maybeyourneighour
  • 494
  • 2
  • 4
  • 13
3
votes
1 answer

execvp() with grep that has quotation marks

I did 'grep' in my own little shell. Other commands, like 'ls -al', 'pwd' ..etc, is working. But When I put 'grep', there was some problems. char* f_grep[] = {"grep", "-n", "a", "a.txt", NULL}; char* s_grep[] = {"grep", "-n", "'a'", "a.txt",…
Jason
  • 33
  • 5
3
votes
2 answers

Split/tokenize/scan a string being aware of quotation marks

Is there a default/easy way in Java for split strings, but taking care of quotation marks or other symbols? For example, given this text: There's "a man" that live next door 'in my neighborhood', "and he gets me down..." Obtain: There's a…
sinuhepop
  • 20,010
  • 17
  • 72
  • 107
3
votes
2 answers

Find and print text in quotation marks from a text file with python

I am a python beginner and want python to capture all text in quotation marks from a text file. I have tried the following: filename = raw_input("Enter the full path of the file to be used: ") input = open(filename, 'r') import re quotes =…
user2026718
  • 33
  • 1
  • 3
2
votes
2 answers

How do I look in a string with text inside quotations, but ignoring anything inside brackets using regex?

For example my string is: var str = 'Hello "Counts1 [ignore1] Counts2 [ignore2] Counts3 [ignore3] Count these too"'; How would I get everything inside the string that is inside quotations ignoring the characters inside the brackets? So for example…
user15585067
2
votes
2 answers

String search using regular expressions

i am trying to match strings that dont contain quotation marks but they can contain escaped quotation marks. when i say string i mean quotation marks and a string inside them. i am using this regular expression but it does not…
yossi
  • 12,945
  • 28
  • 84
  • 110
2
votes
1 answer

Replacing all english quotes with german quotes

im here to ask, if someone can help me with quotation and syntax checking. im aware of the question solution 1, but i don't fully understand that solution. here is an example, fully integrated into a website and humbly ask, if anyone can find an…
Rainer
  • 23
  • 2
2
votes
2 answers

Snakemake: {input:q} does not return quoted input

I am developing an ATACseq pipeline using Genrich to run with Snakemake. The fact is that Genrich allows to call peaks from more than one replicate in the same step, avoiding additional steps (i.e. IDR). In Snakemake, I have found the way to return…
2
votes
3 answers

Regex to match space after opening quotation mark

I have written a regex to match sentences with quotation marks on both sides in a single line: (?
amirvf
  • 23
  • 2
2
votes
3 answers

Java library that escapes quotation marks

I often have to escape many quotation marks in a String. Is there a library that provides String functions such as this. It's easy enough to write, but something that had lots of different features/options for escaping would be handy.
Ankur
  • 50,282
  • 110
  • 242
  • 312
2
votes
8 answers

How to remove all quotations mark in the csv file using powershell script?

I would like remove all quotations character in my exported csv file, it's very annoying when i generated a new csv file and i need to manually to remove all the quotations that include in the string. Could anyone provide me a Powershell script to…
Ted.Xiong
  • 71
  • 1
  • 2
  • 5
2
votes
1 answer

Paste and collapse vector and enclose with quotations

I am trying to formulate a select statement in my API query by pulling a vector from an excel file. The vector I am pulling from an excel file is: X <-c("name", "type", "target") I am then passing this vector into my API query path as such: path <-…
SteveM
  • 213
  • 3
  • 13
2
votes
0 answers

How do I output the appropriate quotation marks for a given locale in PHP?

Lately, I've been going wild about locales and outputting the correct date/time formats, number formats, money sum formats, percentage signs, etc. for each locale/language combination. Instead of figuring out and hardcoding this myself, which would…
user12830943
1 2
3
18 19