24,556 questions
Advice
0
votes
0
replies
19
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 ...
1
vote
3
answers
68
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....
-1
votes
1
answer
115
views
Why does str_getcsv not handle escaped quotes correctly when escape character equals enclosure character? [closed]
I'm using PHP 8.1 and trying to parse a CSV string that follows the convention where double quotes are escaped by doubling them (e.g., "a""b" should become a"b). According to ...
Tooling
0
votes
2
replies
44
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<...
0
votes
0
answers
22
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
64
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 ...
1
vote
1
answer
128
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]>...
1
vote
1
answer
109
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
118
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)))...
0
votes
1
answer
142
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 "...
0
votes
2
answers
206
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*...
0
votes
1
answer
87
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 ...
1
vote
4
answers
234
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 ...
2
votes
4
answers
201
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 ...
-3
votes
1
answer
241
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(...