24,558 questions
Tooling
0
votes
8
replies
254
views
Python `.split()` for Bash?
With Python it's gorgeously simple, my problem is instantly solved in one method:
text='''
dab
a
b
c
dab
e
f
g
dab
h
i
j
'''
print(text.split('dab'))
Nevertheless, doing everything in Bash is a ...
Advice
0
votes
0
replies
45
views
In sieve filters, is it possible to split a string into a list of strings?
In sieve, suppose I have the following variable:
set "thevariable" "a bb ccc dddd eeeee ffffff";
Is there a way to split the value of this variable into the following list of ...
Score of 1
3 answers
90 views
Ansible split based on a list of strings and with the input being a list
I'm tying find good a way to split multiple FQDN domain names from a list of domains in ansible. I need to split the domain name and the unqualified name into a dictionary.
input_fqdns:
- 'host1....
Tooling
0
votes
2
replies
53
views
How to split text file into multiple other files based on its contents
I have a large tab-delimited text file with the following structure:
AAA.xyz<tab><various other tab-delimited values>
AAA.xyz<tab><various other tab-delimited values>
BB.xyz<...
Score of 0
0 answers
25 views
Jodit editor split screen divider
When I load my Jodit editor in split screen mode the divider between the two panes is 50/50
I believe I should be able to drag it left/right to change where the split occurs but I can find no way of ...
Best practices
0
votes
3
replies
106
views
How to split byte array in C++
I am using C++ .NET.
Here is example:
cli::array<Byte>^ myBytes = bytes//the variable bytes
//contains unpredictable amount of bytes,
//it can be 32 or 128 or 256, no matter.
And I have to ...
Score of 1
1 answer
167 views
How to split a slice at a given index, then move the remaining elements into a boxed slice without copying or cloning?
We have a boxed slice of an arbitrary type T. I'd like to slice it at a given index, then move the remaining elements after the index into a new Box<[T]>. It's fine if the original Box<[T]>...
Score of 1
1 answer
149 views
Solr splitting search term soul-control into two word search ' soul or control '
Using solr for searching document storage.
One document has the word soul-control in it. If I search for soul-control, solr splits that word into a search string soul or control, thus returning any ...
Best practices
0
votes
7
replies
125
views
SPLIT without implicit conversion
I am experiencing problems with this section of my formula
=LET(
args; MAP(SPLIT("11/11"&CHAR(10)&CHAR(10)&"1"
; CHAR(10)&CHAR(10)); LAMBDA(v; TO_TEXT(v)))...
Score of 0
1 answer
186 views
What's the idiomatic/correct way to split a string into its first word and the rest of the string? [closed]
tl;dr
Ideally, I'd want the following
"hello world" is split in "hello" and " world"
" world" is split in "" and " world"
"hello "...
Score of 0
2 answers
223 views
Split a string into an array but ignoring blank lines [duplicate]
I'm trying to get a relatively simple regex working the way I want it to. I'm trying to split a string into an array but ignoring blank lines.
Here's what I've got so far
const regExp = /\s*(?:\n|$)\s*...
Score of 0
1 answer
101 views
How to split one row with column = "A, B" into two rows with "A" and "B"
I have a table where the values are written this way in one single row:
A, B
I want "A, B" to be split into two different rows, along with the other fields of the table.
For example:
I need ...
Score of 1
4 answers
277 views
Split function with if statement to define string value (excel vba)
My VBA Excel code is using the split function from a combo box value. It takes an ID (alias=GG) which is a value right of the 6th hyphen.
GG = Split(Sheet1.ComboBox1.Value, "-")(6)
example ...
Score of 3
4 answers
214 views
Regex to split on %[A..Za..z]
I am attempting to tokenize clock format strings from TCL in C# program using Regex.Split(). For example
%A %B %d %Y or %A_%B sometext %d_%Y
I tried a regex split on @"(%[a..zA..z]) but it ...
Score of -3
1 answer
267 views
Splitting file content using C++20 ranges [closed]
I'm trying to iterate through a text file's lines using ranges:
auto iter_lines(std::ifstream& file)
{
auto lines = std::ranges::istream_view<char>(file) |
std::views::lazy_split(...