Tagged Questions
21
votes
0answers
159 views
Why is StringExpression faster than RegularExpression?
Edit: as noted by Albert Retey the performance difference is only seen when sub expression extraction is performed. If this test is used below the timings are similar:
...
4
votes
5answers
165 views
A simple StringCases problem
Given this text:
text1 = " A Vitamin D Deficiency (ICD-9-CM 268.9) (ICD-9-CM 268.9) 09/11/2015 01 ";
Yes, the ICD code values are duplicates- possibly but ...
10
votes
1answer
175 views
Mathematica equivalent of regex '\w{2,3}'
It beats me to write the Mathematica pattern equivalent to the regex:
\w{2,3}
Any ideas?
7
votes
1answer
205 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?
...
4
votes
4answers
298 views
Creating lists from a string, separating words from numbers
Say I have a string that contains numbers and words, such as this one:
string = "there are 1234 words and numbers 5678 in here $999";
How would I separate the ...
11
votes
2answers
180 views
15
votes
4answers
513 views
Finding all dictionary words that can be made with a given set of characters (Wordfeud/Scrabble)
This is a slightly more involved variant of this recent question. By sheer coincidence I happened to have been building a Wordfeud (Scrabble clone) game in Mathematica.
My interactive Wordfeud ...

