Questions tagged [delimiter]

A delimiter is a sequence of one or more characters used to specify the boundary between separate, independent regions in plain text or other data streams.

A delimiter (Wikipedia) is a sequence of one or more characters used to specify the boundary between separate, independent regions in plain text or other data streams. An example of a delimiter is the comma character, which acts as a field delimiter in a sequence of comma-separated values.

See also:

3001 questions
0
votes
2 answers

strtok() while loop is returning extra blank/place holder and not specified string

I have a path to some folders as a string and using strtok() to break down subfolders separated by , delimiter. Issue is when its printing in a TreeControl view (runs successfully) but its printing an extra blank folder (dotted/line space) for what…
nicu98
  • 13
  • 3
0
votes
1 answer

Excel Formula Help Request - Delimeter and Counter

How can separate the data given the data below by warehouse, and count each item by the quantity provided next to the item? WAREHOUSE1-ITEM1-2-ITEM2-1-ITEM3-1-ITEM4-2-ITEM5-1 WAREHOUSE2-ITEM1-1-ITEM2-2-ITEM3-3-ITEM4-4-ITEM5-5
0
votes
2 answers

Find and extract text between delimiters R

I have the following data string Seat_WASHER<- structure( list( Description = c( "SEAT WASHER, MR2, 8\", TN 10.12, CR 150/600, 316 Stainless Steel", "SEAT WASHER, 1\", TN 1.42, CR 950/1200, MR1, 316 Stainless Steel", …
DShad33
  • 3
  • 2
0
votes
2 answers

read a text file with python with /t /n

I have a text file for exemple: 1 2 3 4 5 6 7 8 9 I want to get the output [1, 2, 3], [4, 5, 6, 7], [8, 9]. I tried the following code: with open('name_file.txt', 'r') as f: text=f.readlines() But I got the following output: '1\t2\t3\n', …
0
votes
2 answers

Avoiding an extra space when detokenizing a non-range

I have a structure with many "options", each of which, depending on its value, translates into a command-line option - either with or without a value. The order of the command-line options is of no consequence. The detokenization is not always into…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
0
votes
0 answers

How to ignore additional delimiter ";" while performing pd.read_csv while merging multiple CSV files

This is part of my CSV file: I have ";" as my delimiter but due to "Tr.Run on ; FL speed = Tr.run speed" at 4th line I'm getting this error: pandas.errors.ParserError: Error tokenizing data. C error: Expected 11 fields in line 4, saw…
SarangP
  • 3
  • 2
0
votes
1 answer

Split column in several columns by delimiter '\' in pandas

I have a txt file which I read into pandas dataframe. The problem is that inside this file my text data recorded with delimiter ''. I need to split information in 1 column into several columns but it does not work because of this delimiter. I found…
0
votes
1 answer

C++ std::sregex_token_iterator dereference and cast to int

I'm doing leetcode 297. Serialize and Deserialize Binary Tree, and I'm trying to solve it with std::sregex_token_iterator (other than using std::istringstream/std::ostringstream). My solution is to append a whitespace when reading(serializing) a…
Learning
  • 13
  • 4
0
votes
1 answer

Send a Procedure in a query from Node to MySQL

I'm building a backend for my food application, and I need to create columns in food table and INSERT rows in nutrients table. I'm constructing a query, there are ~60 nutrients in every food, and there are hundreds of different nutrient types. I…
jaclaw
  • 11
  • 1
  • 2
0
votes
1 answer

How to parse a csv file with a custom delimiter

I have a csv file with a custom delimiter as "$&$" like this: $&$value$&$,$&$type$&$,$&$text$&$ $&$N$&$,$&$N$&$,$&$text of the message$&$ $&$N$&$,$&$F$&$,$&$text of the message_2$&$ $&$B$&$,$&$N$&$,$&$text of the message_3$&$ and I'm not able to…
0
votes
1 answer

Is a Scanner Delimiter of Only a Comma Possible in Java? (for CSV files, no libraries)

I specifically want to only use a comma as my delimiter to read a CSV file. For instance, a program might read a person's name, clock-in, and clock-out times. The associated CSV file might contain: John Doe, 09:00, 17:00 The program should be able…
Xbox 360
  • 1
  • 1
  • 1
0
votes
1 answer

Split a string in python with side by side delimiters

The Question: Given a list of strings create a function that returns the same list but split along any of the following delimiters ['&', 'OR', 'AND', 'AND/OR', 'IFT'] into a list of lists of strings. Note the delimiters can be mixed inside a string,…
0
votes
1 answer

What causes the crash while using strcat and and memset?

I am trying to implement a split funtion, which receives an array of chars and a delimiter that will decide what chars go to each array in the split array. I have a problem with strcat and memset, can somone explain my mistakes to me? char**…
0
votes
1 answer

How can I use Scanner.useDlimiter to read a certain thing only

i am trying to only read what is coming in run(...) inside of the clips but i am struggling to find how or any example to help. i am trying this code but it only reads what comes before and can't read anything if i only start with run(. public…
theworld
  • 3
  • 1
0
votes
1 answer

Capitalize first letter, every word, fix possible string split order issues, multiple delimiters in T-SQL 2017 without using a user-defined function

Just curious if there is a better way to capitalize first letter of every word, fixing possible ordering issues with string split, that is easier to include other delimiters. This is used for reports, it would be preferable not to use a user-defined…
Daniel
  • 19
  • 4
1 2 3
99
100