Skip to main content

Questions tagged [string-manipulation]

Questions on the manipulation of String objects in Mathematica, and the functions used for these manipulations.

2 votes
3 answers
135 views

This is probably trivial, but it has been quite a long time since I last used Shortest and now I can not figure out how to do the following properly. Shortest ...
azerbajdzan's user avatar
  • 32.8k
2 votes
1 answer
130 views

Suppose we have an expression in InputForm as a string. The task is to find position of corresponding parentheses. For example parenthesis at position ...
azerbajdzan's user avatar
  • 32.8k
3 votes
2 answers
227 views

I have arithmetic expressions given as strings with excessive parentheses, and I want to convert them into symbolic Mathematica expressions that retain their structure but are formatted with only the ...
expression's user avatar
  • 5,782
0 votes
0 answers
15 views

Reference: arXiv:2505.00602 Reproduce Table I ...
138 Aspen's user avatar
  • 2,364
7 votes
1 answer
140 views

The documentation for the FromRomanNumeral function states that any combination of valid digits is interpreted as an integer: ...
thecommexokid's user avatar
0 votes
1 answer
139 views

Is it possible to format/style a string/text so that it is displayed in lines of fixed character length like on image without converting it to list of characters? ...
azerbajdzan's user avatar
  • 32.8k
3 votes
2 answers
215 views

I am having a lot of issues trying to import data into mathematica and then clean the data so that mathematica recognises it. The data is a set of permutations, which I would like to express as ...
am567's user avatar
  • 997
4 votes
2 answers
360 views

The previous question How to set to 0 all terms in a matrix which contain a minus seems to have a wrong answer. For the matrix ...
florin's user avatar
  • 2,380
1 vote
3 answers
114 views

I can run this with no problem: Import[NotebookDirectory[] <> "a10.mx"]; Instead of that, I want to describe 10 with a variable as ...
merts's user avatar
  • 95
1 vote
1 answer
90 views

I'm trying to find better ways to import data. My data set is a CSV that contains a parameters at the end of the file. For example in this two part list I want to find the position at which the word &...
Alex Wong's user avatar
6 votes
2 answers
248 views

Try the following code to convert the expression to LaTeX code f = Expand[(x/2 + y/3 + z/5 + 1/7)^20]; str = ToString[f,TeXForm]; // AbsoluteTiming It took about 1 ...
lapcal's user avatar
  • 877
8 votes
9 answers
918 views

I have two large lists: list1 = {{a,v},{a,h},{b,v},{b,k},{c,t},{c,r},{d,r}}; list2 = {{v,dc},{v,rt},{h,kl},{h,oi},{h,po},{k,ö},{k,dc},{t,re},{r,qw},{r,ay},{r,ül}}; ...
M.A.'s user avatar
  • 959
0 votes
0 answers
124 views

I am trying to query a large language model from VS code using WolframEngine. However, ImportSting with JSON options does not ...
LCFactorization's user avatar
1 vote
1 answer
110 views

Is there a function that separates a filename from the extension? E.g. MyNotebook.nb would become ...
stevenvh's user avatar
  • 7,281
5 votes
3 answers
826 views

I've written some code that provides answers to the daily NYT Spelling Bee puzzles which ask you to find words that can be constructed from 7 given letters, one of which must be present in each word: <...
Suite401's user avatar
  • 5,107

15 30 50 per page
1
2 3 4 5
89