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

learn more… | top users | synonyms (3)

3
votes
1answer
51 views

How can I lookup the grammatical type of a word?

It seems WordData isn't complete: ...
15
votes
0answers
170 views

Mma 10.2 `Alphabet` and `LanguageData` give different and both erroneous list of letters

The new function Alphabet introduced in Mathematica 10.2 gives the wrong list of letters for the Spanish language in my system (Windows 7 64 bits). ...
4
votes
0answers
127 views

Is it possible to Compile the function with string argument?

As we can see from the Compile documentation, the typical arguments for Compile should be ...
4
votes
0answers
81 views

Error with String patterns producing Removed[“$$Failure”]

While working on How to capitalize the first letter of each word in a string and trying to understand why certain characters were not considered letters I tried this: ...
3
votes
0answers
49 views

Error when combining Except, “*” and an additional character

Anyone knows why StringMatchQ["x", Except[{"1", "2"}]] StringMatchQ["x", Except[{"*"}]] StringMatchQ["x", {"1", "*"}] (* without Except *) all work as ...
3
votes
0answers
79 views

Copy string with markup so it looks good on input

How can I copy a string with a bunch of *Box expressions without it blowing up into the raw expression? ...
2
votes
0answers
95 views

How to efficiently find parts of a string with beginning and ending specified?

I'm trying to find specific URL addresses from a html document. The addresses can be found between the strings "href=\"" and "\" class=\"listing". The problem is not including strings like this: ...
1
vote
0answers
78 views

Geodesy without units?

Suppose I'm interested in the latitude of Los Angeles and I do the following: ...
1
vote
0answers
107 views

Split one string about a fixed width with `SyntaxQ=True`

How to split one string about a fixed width, the string may come from the input or output cell of Notebook. sample string ...
0
votes
0answers
48 views

How to parse fraction to a number?

Considering a fraction: val = "F \!\(\*FractionBox[\(1\), \(1\)]\)"; I extract the part of interest: ...
0
votes
0answers
41 views

Recurrence relation for multivariate polynomials

I am trying to define a function which recursively computes a polynomial associated to every binary string: ComputePoly[s_]:=(** Recurse on the string s**) For ...
0
votes
0answers
55 views

Shortest Common Superstring for all k-length strings on an alphabet

Given all strings of length $k$ of an alphabet of size $n$. This gives $n^{k}$ strings. Now I want to create one superstring that contains all these strings as substrings. They hopefully strongly ...
0
votes
0answers
41 views

Stringifying $GeoLocation for the browser

Currently, when I ask for ExportString[{"geoLocation"->TextString[$GeoLocation]},"JSON", "Compact"->True] I get this: ...
0
votes
0answers
45 views

Error when converting a string involving superscript after closing square bracket using ToExpression

I would like to store a piece of code in the form of a string, make some string transformation to it and get the new code evaluated using ToExpression. Everything works just fine but one: if there is ...
0
votes
0answers
78 views

importing a file with asterisk in its name (Linux machines)

I am trying to import a file: ...
0
votes
0answers
41 views

StringCount in Mathematica

StringCount["one letters three letters letters one letters letters three letters", "one" ~~ __ ~~ "three"] gives 1 because ...
0
votes
0answers
88 views

Read in bezier curve from svg file

I am trying to do some calculation of some svg file,After read in with Import["filename","XML"]and some easy operation, I can get the string of the bezier curve, ...