Skip to main content

Questions tagged [split]

Use this tag for questions about separating an item (e.g. a string) into parts, often by a delimiter or regular expression.

-1 votes
0 answers
13 views

Why am I getting " Invalid argument type (Record). Expecting a Text value instead."?

I'm reading from a txt file a list of names and docs (one group - name and doc - per row). The value is stored in FileContents variable. Then I start a "for each" loop in from FileContents ...
Mr Papiro's user avatar
0 votes
1 answer
56 views

split pandas datafram based on given row string

I have a text file with a data set of the form Line 1 Line 2 ! 1.01499999 0.504999995 6.19969398E-7 5.38933136E-7 1.35450875E-6 1.74000001 0.220000029 7.92876381E-6 4.1831604E-6 6.61433387E-6 2....
Py-ser's user avatar
  • 2,019
-4 votes
1 answer
55 views

Java String split by empty lines including empty lines at the end [closed]

I have seen many questions and answers online, but it seems that I cannot find the case that I have. String s = "a\nb\n\nc\n\n\n\n"; String[] split = s.split("\\R"); //is the same ...
Matjaz's user avatar
  • 484
0 votes
1 answer
44 views

terra::split | R session aborts when splitting polygon fatal error

When trying to split a polygon R runs into a fatal error and aborts. This happens when using R Studio and R on itself. I wrote the code on an earlier version of R on a different machine (also a mac), ...
Amantil's user avatar
1 vote
2 answers
18 views

Split a string in JavaScript when last number arise

I want to split the string "111A1A.11111.SL.111FUND II GP_KY.zip" when last number is arise. string="111A1A.11111.SL.111FUND II GP_KY.zip"; output="FUND II GP_KY.zip"; I ...
chandaneswar kuanar's user avatar
0 votes
2 answers
75 views

rust `split` split before the pattern match

I'm trying to split up a String retaining each pattern match but with the matched part retained as the beginning of the next sub-string rather than the terminator of the last. Current implementation: ...
Pioneer_11's user avatar
  • 1,034
4 votes
3 answers
154 views

Word splitting bash parameter on whitespace respecting and retaining quotes

Given the bash parameter foo='ab "cd" "e f" x="1 2" ' I wish to produce an array equivalent to foo_transformed=( ab '"cd"' '"e f"' 'x="1 2&...
Zorawar's user avatar
  • 6,706
1 vote
1 answer
52 views

Pyspark SQL not splitting column

I was trying to split my column using pyspark sql based on the values that are stored in another column, but it doesn't seem to work for some special characters. Here is my code: df = spark....
Sr Jefers's user avatar
  • 137
-1 votes
1 answer
30 views

Split a video with ffmpeg, without reencoding, at timestamps given in a txt file

Let's say we have a video input.mp4, and a file split.csv containing: start;end;name 00:00:27.132;00:07:42:422;"Part A.mp4" 00:07:48.400;00:17:17.921;"Part B.mp4" (or I could ...
Basj's user avatar
  • 44.9k
1 vote
1 answer
43 views

Splitting up a variable range of time into multiple cells

I need to split up a range of time from a variable input in excel, for example Start End 11:00:00 13:00:00 I would like to have the input split up in segments of 30 minute intervals (input is only ...
nocluewhatimdoing's user avatar
0 votes
1 answer
50 views

Parsing a string with text within it

I'm trying to read in and parse a CSV output file from PostgreSQL, but there are some oddities in the data. The data contains vehicle details. One problem is with old Land Rovers which have models ...
Doc Tim's user avatar
0 votes
1 answer
49 views

How can a number range and value be extracted from this complicated string using Python?

I have a complicated string that includes a kilometer range and a fee for users that fall into that range. Ideally, I would like to transform the string into something that I could use to easily ...
Feiznia's user avatar
  • 15
0 votes
1 answer
29 views

Split out numbers in a column

I'm trying to split out the two numbers in the cell into separate columns I've tried "text to columns", using the delimitator "space" but it removes the second number in each of ...
William Bamber's user avatar
-4 votes
1 answer
57 views

Python - Extract data from text

I have lots of files in a database and with a command I can retrieve information from a file, but the problem is that I get this very abstract result, for example [File({'added_on': 1720455648, '...
Whykioh's user avatar
-1 votes
0 answers
45 views

EXCEL a dynamic solution for searching through 3 different arrays

I have so far all the names of teachers who match students post code, subject and age phase using TEXTJOIN. I have then used TEXTSPLIT to separate the teachers names into columns. Under the PostCode I ...
Diane's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
1632