Linked Questions

45 votes
10 answers
8k views

I'm new to Mathematica, I've been learning by myself, and, being a Java developer for some time, it makes it hard to adapt. I've tried to solve a Reddit challenge, and I came up with this solution: <...
Marco Aviles's user avatar
14 votes
7 answers
3k views

Again, I have a list like this: ...
holistic's user avatar
  • 3,085
19 votes
3 answers
1k views

I would like to apply Style to strings that are matched, for example, with one or more specified patterns or regular expressions, a string or a list of both, ...
Jonathan Prieto-Cubides's user avatar
9 votes
4 answers
785 views

Sometimes because of conditionals, you cannot guarantee that Sow will be called at least once. Reap[Sow[1]][[2,1]] results in <...
Manuel --Moe-- G's user avatar
6 votes
2 answers
283 views

This is a two-part question: First, given txt = "the quick brown fox jumps over the lazy dog" Why does this repeated pattern match both instances: ...
alancalvitti's user avatar
  • 15.3k
6 votes
3 answers
1k views

For a Natural Language Processing analysis task it's desirable to highlight a text string programmatically according to XML tags that reference specific words or phrases. The XML tags specify the ...
alancalvitti's user avatar
  • 15.3k
3 votes
2 answers
992 views

I have one longer string, longString, and a set $S$ of shorter strings {ss1,ss2,ss3,...}. I'd like to print out ...
Bob2Alice's user avatar
  • 137
2 votes
3 answers
536 views

So I have this: a=14; max = FindMaximum[x^3 - a x^2 - x + 1, {x, -2, 15}] (* {1.01781, {x -> -0.0355787}}*) And I plotted this: ...
Onizuka's user avatar
  • 349
3 votes
1 answer
375 views

I'm interested in displaying a string composed from sub-strings of different colors. Mathematica allows one to create a list comprising sub-strings of different colors, for example ...
Konstantin's user avatar
2 votes
1 answer
197 views

Why is there a StringExpression in the following code? ...
HyperGroups's user avatar
  • 8,669
1 vote
2 answers
233 views

How can I colorize letters in the given string? For instance: string = "jaonvtaqhsy" How to colorize 3 letters in the middle of ...
vito's user avatar
  • 9,126