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.
3,003
questions
2
votes
1
answer
47
views
How to split query string using Multiple Delimiter (=, !=, >=) using regex
I want to split query string which might have multiple delimiter.
My strings are,
book_id=123&start_date>=2023-09-12&end_date<=2023-09-14&status!=return
We have 6 delimiters, =, !=, &...
0
votes
1
answer
33
views
Avoid spilling of column value to other columns while reading csv in pyspark
I have a csv of 9GB and trying to read in pyspark , below is values of csv one row and column -
|nature_of_suit|posture|syllabus|headnotes|summary|disposition|correction|doc_id|
| | |<p>In May, ...
0
votes
2
answers
29
views
pd.read_csv not parsing tsv correctly:read why are some tabs not recognized?
Heading
I recently downloaded a public dataset about movies on imdb (https://datasets.imdbws.com/title.basics.tsv.gz).
However, inspection after I load it in a dataframe shows that some rows are not ...
0
votes
0
answers
23
views
Response BinaryWrite does not allow the splitting column in export excel. It creates single column of entire data
When i try to export the Sitecore data into excel with multiple languages like Russian, Portuguese and so on i am facing data issue so i try to use Response.BinaryWrite option. All the language values ...
2
votes
4
answers
74
views
Seperate two different delimiter and cut off
I have a tibble, e.g.
a <- as_tibble(c("201.1, 202 (abc) 203, 204", "301 / 302.22 def, 303"))
value
<chr>
1 201.1, 202 (abc) 203, ...
1
vote
1
answer
41
views
Problem with custom delimiter for Scanner in Java
I want to avoid the issue of "new line character" that is generated by pressing the enter key when I enter a number for nextInt(), since nextLine() will consume the new line character and ...
0
votes
0
answers
23
views
Moving files into structured directories based upon their names
Three main directories are being checked within the script, source, destination, and tertiary.
The script checks the source for a PDF and if the same name and extension does not exist within the ...
0
votes
4
answers
101
views
How do you split at the end of the line in Java?
I have a .txt file that looks like this:
Event=ThermostatNight,time=0
Event=LightOn,time=2000
Event=WaterOff,time=10000
Event=ThermostatDay,time=12000
Event=Bell,time=9000,rings=5
Event=WaterOn,time=...
0
votes
4
answers
70
views
Separate multiple columns and name column names after part of string R
I've got data which saved all the survey question responses to the same cell. I'm trying to find a way to split the data into multiple columns and use the part of each string until a set delimiter as ...
0
votes
1
answer
17
views
Difficulty reading .tab file in R due to newline and tab not being recognized properly
I am trying to read in a .tab file in R and while I am able to read the file, I am getting strange results due to what appears to be hidden tab or newline characters.
data<-read.table("data....
0
votes
0
answers
34
views
How can I use the IF statement to delimit cells in Excel, instead of Text to Columns or TEXTSPLIT?
I'm trying to split cells with multiple forward slashes in between words. Some have 5, some have 7, some have 8.
Text to Columns doesn't work correctly, and my subscription doesn't have TEXTSPLIT.
I'...
0
votes
1
answer
32
views
Postgresql backslash escape character not working for commas in COPY FROM
Postgresql backslash escape character not working for escaping a comma delimiter in COPY FROM csv file. I am using Postgresql version 12. I have tried this:
COPY myTable
FROM '/tmp/myTest.csv'
...
0
votes
3
answers
55
views
How to Combine Two Different tokens, delims, and findstrs?
I have an output text file for a software license usage which displays a ton of information and I want to extract pieces of each line depending on what that line contains to simplify the output.
Here ...
0
votes
0
answers
12
views
i have a problem by collect and combine two column dates from a database [duplicate]
hello i am really a beginner in SQL, I want to test that by using a cursor in mysql, I tried to collect date in the database and then relay to two variables as @id and @borrower, but fails. Mysql ...
0
votes
2
answers
88
views
Loop through all lines in a text file, while preserving empty lines AND all characters
I need to loop through every line in a text file, and still have the empty lines. The common solution I could find is as follows:
for /f "tokens=1* delims=:" %%i in ('findstr /n "^"...
1
vote
1
answer
52
views
Multipler delimiters in a column
Column of results with multiple answers separated by ',' or '/'. Need to count the instances of each response.
What I want to end up with is
I'm at a loss how to split the Answers column in the ...
1
vote
2
answers
46
views
Converting a dictionary to a CSV file using concatenation
In the image above is an example of a dictionary can be converted to a csv file using concatenation however I am having difficulty understanding the syntax of constantly repeating the csvString ...
-1
votes
2
answers
72
views
Regex to include comma in java split function
I want to have a split function that splits String based on delimiter "," but that should not be taken as delimiter in some cases.
lets say:
String= "one,two,three"
Array=String....
0
votes
5
answers
61
views
Arithmetic operation on string
I have a string . It looks like:
00:00:08
00:40:20
01:50:20
.....
and so on.
In the first line , 00 is the hour , next 00 is minute and 08 is seconds. I need to get the total seconds. I am trying to ...
0
votes
2
answers
54
views
Delimiting by Number of Characters
I am trying to delimit a 2D array that has no spaces in it. There are supposed to be 88 columns and 148 rows. But right now it's just 148 spaceless rows. The first row doesn't have any numbers and ...
0
votes
0
answers
23
views
PySpark Control Character Delimiter not being handled/converted while reading/writing CSV
As per current requirement, I want to use delimiter as ^A, ^B (control-characters on front end) etc which are getting converted to \u0001 and \u0002 on reaching the pipeline as per ideal scenario.
I ...
0
votes
1
answer
46
views
How to create parametrized regex (by terms of C#) which matches strings delimited by custom multicharacter delimiter?
So, I want to find strings in a text. The text can contain multiple lines. The strings can be delimited by custom delimiters - this should be parameterized. There can be multiple strings in the text, ...
1
vote
4
answers
108
views
How to ignore delimiter for certain rows of records while reading a CSV file in python
I've got a two column CSV with a name and a number. Some people's name use commas, for example HO,inc. This comma breaks the CSV format, since it's interpreted as a new column. how to handle this in ...
0
votes
0
answers
31
views
What does it mean to split by '\;' in pyspark?
What does the \ in this code mean?
When I try splitting by just ';' I receive a 'java.lang.Exception: Results too large' error message.
df.withColumn('split_col', split(col('field'), '\;'))
I tried ...
0
votes
2
answers
34
views
Flat file connection manager exports all values into column A (CSV file)
When using a flat file connection in a SSIS package in VS, all the different values go into column A, instead of being separated into different columns. The preview in the flat file manager dialogue ...
0
votes
0
answers
44
views
Select Delimiters in JSON Using Regex
My goal is to be able to index a dataset which includes free-form JSON data. For the constraint of this project, I'm using Azure Cognitive Search. ACS handles all the data parsing from an external ...
0
votes
1
answer
49
views
TypeError - read csv functionality
I am getting a Type error when reading a csv file with a bell character as a separator. I don't want to use the pandas and need to utilize the csv libraries for this issue.
Sample header:
["...
0
votes
1
answer
60
views
TSQL Flatten Split Tab Delimited Column
I am importing error log flat files into my SQL server, and need to parse a tab-delimited column into multiple columns. Borrowing heavily from this question (SQL Split Tab Delimited Column), ...
0
votes
0
answers
17
views
Skipping a row because of a delimiter mismatch in Visual Studio SSIS package
So I'm trying to import a series of CSVs using an SSIS package made in Visual Studio 2019.
These CSVs contain a field where a person has written a response, and occasionally someone will have written ...
0
votes
1
answer
58
views
bash perl options for one expression, others for another, in the same command
I have file1.txt
text1
text1
text1
text2
text2
text2
text1
text1
text1
and file2.txt
text1
text2
text2
text1
text1
text1
I have a command with pipe:
perl -pe 's/text2$/text4/' file1.txt file2.txt | ...
3
votes
2
answers
116
views
R separate_wider ignore comma inside quotes
I have data that I had to export from Airtable into a CSV file. There are some columns where multiple pieces of information are included, separated by commas. However, in some instances the separate ...
-3
votes
2
answers
808
views
sql split column in columns by delimiter [closed]
I have a SQL table in a SQL database in Azure with the column id which has entries in the form AAA_1, AAA_2, BBB_1, BBB_2.... I would like to split this column in two columns by the delimiter _ like ...
0
votes
0
answers
28
views
For-loop not stripping semi-colon (;) and also breaks with bar(|) as %variable%, but works as intended with other symbols (/\?^$%*=#,.:etc) in batch
While working on a script that uses a kind of self-setting delimiter based on input, I discovered a bit of a curiousity with semi-colons injected into for parameters as a %variable%.
There is ...
2
votes
1
answer
36
views
How to remove delimiting characters in loadfile?
Is there a way to write a regex expression that removes 2 delimiting characters "þ" from every line that contains 48 of these characters?
I tried manually removing them, but it takes too ...
0
votes
2
answers
152
views
Extracting columns from txt file with two delimiters using powershell
i have a sample.txt file
Processing...
Cl.Cog="/u/l/Cg.txt"
V.DM=Nv
AL.Ft="He Se Fe",Bt,@L(Ey,0),&Ct:&Cu3
i need to seperate this file with 4 different columns with new ...
-3
votes
1
answer
74
views
first array of getline is empty '\0'?
I have this simple code and I used char because we are required to do use it and advised don't use string use array for now. its not the same but its similar This code is where i am getting the issue ...
1
vote
2
answers
53
views
Read a csv file in unknown encoding format
I am trying to read a CSV file in python(google colab). Please, find attached the file in the following link: https://github.com/LeGentilHomme/CSV-FILE/blob/4b69985482e59906b64a540b9c0d0a7fce31a37e/...
1
vote
3
answers
406
views
How to split one column into multiple columns by delimiter (with different numbers of delimiter)
I have a dataframe like this one:
continent <- c("Europe", "Asia")
country <- c("France;Germany;Italy", "Japan")
start_problem <- data.frame(continent, ...
0
votes
1
answer
94
views
Unicode delimiter in vb6
i wrote data arrays at the end of the exe with delimiter. After I compiled, the app it didn't work on Chinese Windows, only on English, i tried to use unicode characters for delimiter(example below) ...
-2
votes
1
answer
28
views
Regex to place a Pipe delimiter before a decimal
I need help writing a Regex that places a Pipe Delimiter after some text (with words mixed with special characters and numbers) but before a decimal.
Sample Text:
City of Fort Myers ***9999 5 7 6 . 0 ...
-1
votes
1
answer
58
views
How do you use parse for timestamp data?
I need to be able to print Flow Sample data in tab-delimited lines of text where each data field is separated by tabs. Using the tab-delimited lines I need to be able to type data in like:
Please ...
1
vote
1
answer
90
views
Read txt file line by line using batch, including lines that start with a semicolon [duplicate]
I tried it like this:
for /F %%i in (%textfile%) do (
echo %%i )
Or this:
for /F "tokens=* delims=" %%i in (%textfile%) do (
echo %%i )
Or every other combination, with or without tokens ...
-1
votes
3
answers
41
views
I need a single Regex pattern which can help me extract the specified substrings from the given strings when using REGEXEXTRACT in Google Sheets
I have a set of three strings as shown below:
GarnetUniversity_Zeus_Cronos_Greece_675|GoNow-New-Image-0S
SnoxUniversity_Dionysus_Zeus_Crete-50_450|GoNow-New-Image-DS
...
0
votes
0
answers
128
views
Reading Large Text File with delimiter using PySpark and count the number of rows
I am trying to read a large Text File (Around 9 GB) and trying to print number of rows/records but it is giving following error PicklingError: Could not serialize object: IndexError: tuple index out ...
0
votes
0
answers
24
views
Display the selected column and count the number of repeated errors
I was wondering if someone can assist me on how :
to display the selected column in the TXT files that have been separated using ","
also can count the number of repeated errors.
In this ...
0
votes
0
answers
26
views
How can I change the delimiter from / to % inside a range expression in sed? [duplicate]
Start with this script:
#!/bin/bash
line1="value1"
line2="value2"
< input_file sed -p "/$line1/,/$line2/p"
And it works fine. It prints out only those lines between $...
0
votes
1
answer
55
views
Adding 'sep=$' to multiple CSV files
I have ~800 CSV files, the problem is that the Delimiter in each of them is '$'.
Is there a way to add the line 'sep=$' to each file, or change the delimiter on these without having to go through each ...
1
vote
1
answer
27
views
Split string in a data frame column into another existing column with nan values
I working with a data frame where I several columns, but I'm focusing on just two.
Room
Task
Room A closed. something
nan
Room B closed. something2
nan
Room C
Task 1
Some rows in one of the ...
0
votes
4
answers
114
views
Java regular expression to split a string by dashes positioned outside of double curly braces
I have some strings that I want to separate based on dashes but only if dashes exist outside of double curly braces like below:
{{abc-def}}-123-benefit-{{ghi}} should break into {{abc-def}}, 123, ...
0
votes
0
answers
61
views
Change delimiter postgresql
Possible to change delimiter on values?
Example I have one column numbers and the data is 3,5 and always use delimiter ",". But I like to change to the delimiter all of the data to ".&...