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.

delimiter
Filter by
Sorted by
Tagged with
0 votes
1 answer
100 views

How to determine the type of delim used in a txt file?

Here is my sample data: https://github.com/Patricklv/Txt-file I tried to load the data using the following code: library(tidyverse) data <- read_delim("<PATH>\\pgc.cross.SCZ17.2013-05....
Patrick's user avatar
  • 1,131
3 votes
1 answer
159 views

How to split multi-values from two different columns and display split value from one column against split value of another column?

I have two columns as follows: Repay_Aount Repay_Ref 150.063829.07 T21Q1P-20210529T21XYN-20210428 160.1216502429.49 T21YMG-20210628T21GVX-20210531T21Q1P-20210529 115.9104.2826001461.47 ...
K H A N's user avatar
  • 234
0 votes
1 answer
187 views

How to read multiple files on Python with different enconding utf-8 and Iso-8

I am still new to python and I am trying to read multiple files on a loop in python to calculate number of delimiters in each file however I have different encodings 'utf-8' and 'iso-' encoding I am ...
KikiLan's user avatar
0 votes
1 answer
457 views

how to run bash for each line in command output [duplicate]

i am building a bash script that is supposed to put each line of the output of one command to an variable and then run some commands on that, i am doing it like for i in `cmd` do echo i=$i lang=$(...
nanderer's user avatar
0 votes
2 answers
224 views

Class std::locale has no member "imbue" [closed]

I tried to implement functionality so "-" character to be treated as whitespace when inputting with >> operator in c++. A tutorial I read said that I could use the "imbue()" ...
Hofbr's user avatar
  • 908
0 votes
2 answers
46 views

fscanf delimiters - accepting spaces, character limit

I'm struggling with importing lines from a text file into a C program. Below is the text I'm trying to import: 1000|Larry Normal|CELL|3048005191 1001|Shelly Nopers|CELL|3048005191 1002|Shelly Schnats|...
user3385214's user avatar
0 votes
0 answers
232 views

Error when use semicolon delimiter in AWS ATHENA

I created the table below with ';' delimiter, but in the column 'value' it only appears numbers without 'comma', numbers with comma doesn't appear. CREATE EXTERNAL TABLE `table` ( `value` double, ...
William Soares's user avatar
1 vote
1 answer
24 views

List delimiter with custom symbol [duplicate]

I have list with some values: List<String> list = Arrays.asList("1","2","3"); I want convert it to String "1; 2; 3" I have only idea with loop. It works ...
Oksana Veretina's user avatar
1 vote
1 answer
26 views

Substring function to extract part of the string

data = {'desc': ['ADRIAN PETER - ANN 80020355787C - 11 Baillon Pass.pdf', 'AILEEN MARCUS - ANC 800E15432922 - 5 Mandarin Way.pdf', 'AJITH SINGH - ANN 80020837750 - 11 Berkeley Loop.pdf',...
CK-P's user avatar
  • 33
0 votes
1 answer
37 views

I am unable to copy sample data to populate a table Coginity pro from Redshift

I have been trying to copy data to a table in my Coginity Pro but I get the error message below . I have copied my ARN from redshift and pasted it in the relevant path but I still could not populate ...
udmeribe 's user avatar
-1 votes
2 answers
177 views

Count number of substrings in String by multiple delimiters

Imagine the following example Strings ‘John @ Mary John v Mary John vs Mary’ ‘John v Mary Ben v Paul John v Mary’ ‘Hello World / John v Mary John @ Mary John vs Mary’ ‘John v ...
Drewbty's user avatar
  • 19
1 vote
2 answers
287 views

How to read text file with page break character in R

I am quite new to R. I have few text (.txt) files in a folder that have been converted from PDF with page break character (#12). I need to produce a data frame by reading these text files in R with ...
gosling3's user avatar
-1 votes
1 answer
44 views

Populate dataframe by unnesting list of the first column

I have the following issue with a csv in panda the data looks as follow : Column A :row1: [« a », « b »; « c » Row2 : [« d »; « e », « f » Etc … Note the different delimiters. I would like it to ...
Kyrian Bourgi's user avatar
1 vote
2 answers
194 views

I am trying to extract a substring from a given string using Regex on Google Sheets for the first time. Which Regex pattern should I use to do so?

I have started learning Regex recently and I was given a string as follows: T10BestFruits_Mango_7-Slices_Thick_Daily_noshare_BD5567#Aware#SeasonalFruits#NA#NA|FreshMangoes-6x5-NPM-5300000-Nov22 I ...
Dawn7047's user avatar
-2 votes
2 answers
145 views

splitting json string by accolade and keep the accolade

I want to do a split by "{" and keep the "{". The result should be an array: [ "{ \""text\" : \"alinea 1\", \"type\" : \"paragraph\&...
poashoas's user avatar
  • 1,846
1 vote
2 answers
74 views

Is there a way to use scanner to read in a full string including the spaces, without reading the full line?

Let's say my text file looks like this: John Doe 18 male Amy hun 19 female I need to read this into an array like so while(reader.hasNextLine()){ result[i] = new Person(reader.next()...
KidsSeeKanye's user avatar
0 votes
0 answers
38 views

TEXT to EXCEL - Delimiter

hi guys do you know how I can perform text to columns on below data? I can't perform it on excel as the tall box can't be copied to the "other" field of text to columns
Cutie's user avatar
  • 13
0 votes
0 answers
51 views

Need to convert pipe delimeted file to DataFrame

I have a file which has customer data stored in pipe delimited format: 'NS|0001||MMMMMES & MMMMMELL|||||||||29|08|11||||||||||||AD|01|999999999|2/342 P T MMMMMY 4TH STREET WEST|||MMMMMORIN||31|99|...
cRIsP's user avatar
  • 7
0 votes
1 answer
295 views

Handling quotes and spaces in filenames

I want to create a Python (3) script that passes files to a Linux shell program. Straightforward enough to do, but I'm not sure how to pass filenames that could contain single- or double-quotes and ...
Blackmyre's user avatar
0 votes
3 answers
45 views

Hierarchical string delimiting not splitting

I am trying to create a function to parse a string based on multiple delimiters, but in a hierarchical format: i.e., try the first delimiter, then the second, then the third, etc. This question ...
artemis's user avatar
  • 7,067
0 votes
0 answers
99 views

Remove 1st and last character from file content in list imput

I'm trying to get the start and end quotes from items "1st name and 8th name" removed from following outputs: A random Draw: 3rd name 7th name 5th name "1st name An other random Draw: ...
Lod's user avatar
  • 715
0 votes
1 answer
93 views

How to use a none delimiter with csv.writer?

I'm creating a discord bot in python and I want to have a log system for the warn command. To set up this, I'm using a .csv file in which I write all the information I want about a user. It's the ...
Le_char_français's user avatar
0 votes
1 answer
422 views

Power Automate - Split String by ONE delimeter and ignore any other delimiters that may be found

I have created a flow in Power Automate that when a new email is received it converts the body of the email from HTML to text and then a formula to split the text using the ":" delimiter and ...
inni's user avatar
  • 1
0 votes
3 answers
109 views

Split by delimiter which is contained in a record

I have a column which I am splitting in Snowflake. The format is as follows: I have been using split_to_table(A, ',') inside of my query but as you can probably tell this uncorrectly also splits the ...
Python_Hey's user avatar
0 votes
1 answer
45 views

How to import csv file which contains qoute signs and the delimiter is coma?

So i am having a problem importing a csv file, i want to make an object from the columns but i cant read in properly. So the header line looks like this: Title,Year,Genre,Rating,Votes,Directors The ...
Cube GG's user avatar
2 votes
2 answers
477 views

splitting the address column in pandas

I have a pandas dataset like this: import pandas as pd data = {'id': ['001', '002', '003','004'], 'address': ["William J. Clare\\n290 Valley Dr.\\nCasper, WY 82604\\nUSA", ...
Sushmitha's user avatar
  • 131
0 votes
1 answer
91 views

Pop the first element in a pandas column

I have a pandas column like below: import pandas as pd data = {'id': ['001', '002', '003'], 'address': [['William J. Clare', '290 Valley Dr.', 'Casper, WY 82604','USA, United States'], ...
Sushmitha's user avatar
  • 131
0 votes
1 answer
555 views

Text to columns in pandas dataframe

I have a pandas dataset like below: import pandas as pd data = {'id': ['001', '002', '003'], 'address': ["William J. Clare\n290 Valley Dr.\nCasper, WY 82604\nUSA, United States", ...
Sushmitha's user avatar
  • 131
0 votes
0 answers
70 views

Find out what is the file separated with

I'm working on a problem where I have to find out what delimiter is used on the data. Here is a sample data: 1 2 3 4 10 20 30 40 1,3,1,2,3,4 4;3;2;2;1 1,3,1 2 3 4 In the output I would have to ...
wieszak09's user avatar
0 votes
0 answers
90 views

string.indexof() for "weird" characters, which cases are not covered by System.StringComparison.Ordinal?

I have this piece of code: var index = some_string.IndexOf(Delimiter); When Delimiter equals "\u0003", this seems not to work, so I have solved this as follows: var index = some_string....
Dominique's user avatar
  • 16.8k
0 votes
1 answer
84 views

How to convert a list with special delimiter to a python dataframe?

I have the following list where double brackets indicate a new element: [[[33.79277702, -104.3900481], [35.79415582, -104.39016576], [38.7939, -107.31792], [31.792589, -188.38847], [36.79221, -...
JEG's user avatar
  • 154
0 votes
3 answers
460 views

How to remove brackets and commas from an string input?

I am using the latest version of python and my IDE is the latest version of pycharm. I am attempting to convert RLE or raw data to hexadecimal. An example of the raw input would be [3, 15, 6, 4]. I ...
Guhan Gnanam's user avatar
4 votes
2 answers
2k views

Split a text by specific word or phrase and keep the word in Python

Is there any elegant way of splitting a text by a word and keep the word as well. Although there are some works around split with re package and pattern like (Python RE library String Split but keep ...
Sam S.'s user avatar
  • 727
0 votes
1 answer
54 views

How to use sscanf where delimiter is stored in variable

I have a C program that gets the input file delimiter as an argument from the user and stores it in a char. I then need to sscanf the input file based on that delimiter that the user has specified. Is ...
daragh's user avatar
  • 517
0 votes
0 answers
12 views

Problem with delimiter removing my String

When printing I want it to put out: C Windows system But the delimiter makes it so system does not show. What do I do? Scanner userInput = new Scanner (System.in); userInput....
Elextras's user avatar
1 vote
1 answer
138 views

splitting a string with multiple delimiters doesn't work

I'm trying to split a string suing multiple delimiters. Somehow it just doesn't work, it only works if I use each delimiter separately. What am I doing wrong? string = '\r\n\r\n \r\n\r\nfirst_col: ...
corianne1234's user avatar
-1 votes
2 answers
255 views

How do I verify if the next token in a Scanner class is empty in order to differentiate between loop conditions?

I am attempting to solve a problem given to us by our professor. I need to sort through a file, data.txt, by appending occurrences of ; with a blank space and occurrences of ;; with a new line. I am ...
Fuji's user avatar
  • 41
1 vote
1 answer
59 views

How to split a filename based on the latest occurrence of repeated delimiters? (Python)

How can I split a filename based on the latest occurrence of a repeated delimiter? Such that: Example File List: abc_123 abc_123_d4 abc__123 (2 underscores) abc_123__d4 (2 underscores) abc____123 (...
Rinku27's user avatar
  • 37
1 vote
1 answer
2k views

Pandas Split Column by delimiter when the delimiter does not exist in the column at all: ValueError - Columns must be same length as key

I have dataframes as follows; df1: Col1 Col2 1 hey.1 2 and.5 3 hai.6 4 six.4 I want to split Col2 by delimiter ".". I am doing that by executing this code: df1[["Col3", "...
frickinFrodo's user avatar
0 votes
3 answers
75 views

How to split on a delimiter in python preserving the delimiter

so what i wanna do here is basically i have a file with a list of url endpoints, and i wanna split the links in the file on the slash delimter, basically generating sub-endpoints of endpoints, example:...
FozenOption's user avatar
1 vote
3 answers
78 views

Parse from end to start of a String to grab data before the third occurrence of a delimiter

I am working on some strings and trying to parse through the data and retrieve a string that lies before the third occurrence of " - " from the end of the string. This data comes as a String ...
stubbledweb1995's user avatar
3 votes
2 answers
1k views

How to specify delimiter between JSON objects in Kinesis Firehose

As far as I understand, it is possible to specify delimiter on Firehose as long as you activate Dynamic Partitioning. You can see "New line delimiter" option under the Dynamic partitioning ...
mhmtersy's user avatar
2 votes
2 answers
1k views

Excel - How to split semi-colon separated values in multiple columns into rows

I have a table in Excel with following format Col1 Col2 Col3 Col4 alpha A;B;C;D 1;2;3;4 a;b;c;d beta E;F 0;5 x;y How do I split each corresponding values in columns to rows? Col1 Col2 Col3 Col4 ...
Rock's user avatar
  • 107
0 votes
2 answers
72 views

Regex Delete Lines with delimiter `<<<<<<< HEAD` and `=======` in Reverted Commit in Git in Notepad++

Using a bad regex I accidentally deleted many lines I shouldn't have. After reverting the changes (a feature of Git Version Control), I have markdown files that look like this now: <<<<<...
zanodor's user avatar
  • 137
0 votes
2 answers
316 views

How to return values between two different delimiters using SQL?

I have a column bundle_availability_ids in Snowflake that has a value: 6891-HCB-ENG 6433C-MMW-ENG 6433C-MMC-ENG I would like to use SQL to return the middle value in this case to return (MMC,HCB,MMW) ...
Catalina Tocasuchil's user avatar
0 votes
1 answer
139 views

Read space separated text file in pandas

I am trying to read a text file present in this url into a pandas dataframe. https://opendata.dwd.de/climate_environment/CDC/observations_germany/climate/hourly/air_temperature/recent/...
Chhandosee Bhattacharya's user avatar
0 votes
1 answer
631 views

Parsing a text file with a tab delimiter

I need to parse this text file that has essentially four strings separated by a tab. I've been researching and trying different methods and I can't quite figure out how to do it. For example, I would ...
VortexX Bolt's user avatar
1 vote
4 answers
70 views

Split element in list while keeping delimiter

I have a list that I want to split up a bit more, but the output for the data is such that I can't keep it in a good format. Below is an example of what I'm doing data = ['x', '10[mm]', 'y', '15[mm]'] ...
Holoptics's user avatar
1 vote
1 answer
38 views

How do I process different delimiters in a RegEx expression with Java?

I am working on creating a program for my course, in which I am required to divide the string: This;is;the;first;line;;This;is;the;second;line!;;;;Done!;;. In the requirements, I need to read a single ...
Fuji's user avatar
  • 41
0 votes
1 answer
52 views

File fields and columns adjustment with awk [LINUX]

I have an issue with columns delimiters adjustment in a file in linux into a database. I need 14 columns and I use "|" as a delimiter so I applied : awk -F'|' '{missing=14-NF;if(missing==0){...
Mina El-Raheb's user avatar

1 2
3
4 5
61