New answers tagged

1 vote

Pattern matching with DeleteCases

String matching is different than general pattern matching. Let's look at the full form of the expressions: ...
lericr's user avatar
  • 26.4k
3 votes
Accepted

Writing Mathematica code for putting in commutation relations in a string

Following might help, based on the expected result so far : n = 2 -> aabb+ab n = 3 -> aaabbb+3aabb+ab ...
vindobona's user avatar
  • 2,421
2 votes

Manipulation of string list

...
eldo's user avatar
  • 60.9k
3 votes

Writing Mathematica code for putting in commutation relations in a string

Define 2 functions. This one turns strings like "a^3" to "aaa": ...
Vitaliy Kaurov's user avatar
1 vote

Joining adjacent elements by rule

Using SplitBy: ...
Syed's user avatar
  • 48.6k
1 vote

Joining adjacent elements by rule

...
E. Chan-López's user avatar
2 votes

Joining adjacent elements by rule

Using kglr's lists ...
eldo's user avatar
  • 60.9k
0 votes

Compressing a file's name string

Here is a function to compress a file name (lossy though, but okay for my purposes): ...
Teg Louis's user avatar
  • 634
1 vote

How to use `StringJoin` in the given example?

Using ListFormat: ...
Syed's user avatar
  • 48.6k
1 vote

How to use `StringJoin` in the given example?

list = {{"abc", "0000"}, {"def", "1111"}}; Using SequenceCases: ...
E. Chan-López's user avatar
1 vote

How to replace numbers by letters in a special way?

Using ArrayRules and SparseArray: ...
E. Chan-López's user avatar
1 vote

How to use `StringJoin` in the given example?

list = {{"abc", "0000"}, {"def", "1111"}}; Using SequenceReplace (new in 11.3) ...
eldo's user avatar
  • 60.9k
1 vote

How to replace numbers by letters in a special way?

list = {{0, 0, 0}, {0, 0, 1}, {0, 1, 0}, {0, 1, 1}, {1, 0, 0}, {1, 0, 1}, {1, 1, 0}, {1, 1, 1}}; Using Threaded (new in 13.1)...
eldo's user avatar
  • 60.9k
1 vote

Removing all sublists containing any arbitrary string as one or more of its list component

...
E. Chan-López's user avatar
1 vote

Removing all sublists containing any arbitrary string as one or more of its list component

...
eldo's user avatar
  • 60.9k
2 votes

The problem of matching consecutive cross-line strings

...
eldo's user avatar
  • 60.9k
3 votes
Accepted

The problem of matching consecutive cross-line strings

...
xzczd's user avatar
  • 65.4k
4 votes

The problem of matching consecutive cross-line strings

Lets suppose we have this fake data generator ...
Gustavo Delfino's user avatar
1 vote

Manipulation of two lists of strings and integers

Using Lookup: ...
Syed's user avatar
  • 48.6k
0 votes

Manipulation of two lists of strings and integers

...
E. Chan-López's user avatar
1 vote

Manipulation of two lists of strings and integers

...
eldo's user avatar
  • 60.9k

Top 50 recent answers are included