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

learn more… | top users | synonyms (1)

1
vote
2answers
38 views

How to convert TableForm to proper LaTex and why is “\” not replaced by StringReplace?

I'm trying to optimize the teXForm output of a table because the standard output ist not satisfying: ...
9
votes
2answers
191 views

Transform fancy usage messages in 1D string

When we look at the usage messages of built-in functions nowadays (not in the good old times, when they were a simple descriptions) we see that although they look pretty in the front end, it is really ...
2
votes
2answers
77 views
5
votes
3answers
96 views

Unencoding encoded URLs in a function

Is there a built-in function for decoding encoded URLs in Mathematica? I would like to convert an encoded URL, for example ...
1
vote
2answers
105 views

Finding strings in Web Code [duplicate]

I haven't found an answer that solves my problem, although I think it's actually a simple one. It seems hard to me because I don't have a lot of experience with string patterns. I have a Web Code ...
0
votes
1answer
53 views

Construct file names using a number and a string prefix [duplicate]

I'm trying to append filenames with Mathematica, and cannot do it. The output of my calculation are two lists : X and Y, ...
-4
votes
2answers
77 views

how can i convert data into string format? [duplicate]

I have nested-lists in number format,like data={{1,2,3},{2,{3,4,50}},{4,5,6},{3,{3,{5,6}}}} I want to convert each number into ...
4
votes
1answer
63 views

Extracting text from cells, preserving non-ASCII characters

Consider the following setup, based on this answer by WReach: ...
1
vote
2answers
137 views

Faster way to convert real strings into numbers [duplicate]

Working with big files, I have to convert some numbers that are in string format into real MMA numbers. I know that I can use ToExpression but it's slow when ...
1
vote
2answers
106 views

Why do I get two different results from StringLength?

I spent a reasonable amount of time to find the origin of an error in a larger code segment. ...
0
votes
3answers
107 views

How to export a header before the data in the result file?

I would like to export a phrase to my result data as a heading. I'm exporting the data correctly with Export["file.dat", table]. But I'm doing several ...
8
votes
3answers
176 views

balanced Shortest[] and string-patterns

The pattern Shortest["A"~~__~~"B"] is oriented : It assumes the text is read from links to right and it takes the text between the first "A" and the next "B". Any ...
7
votes
1answer
141 views

What pattern will match accented letters in a regular expression?

How should I modify the following such that the accented letter É is matched and the expression returns True? ...
5
votes
2answers
164 views

Concatenate strings from different levels of list

After a lot of trouble I've finally come pretty close to what I want to do. I now have a list that looks like this: ...
2
votes
1answer
88 views

Confused behavior using Dispatch to sort one list relative to another

I have a need to sort the entries of one list into the same sequence as the entries in a reference list. Because I have rather large lists involving strings, I'm trying to use Dispatch to accomplish ...

1 2 3 4 5 7
15 30 50 per page