Tagged Questions
1
vote
2answers
106 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 ...
8
votes
3answers
177 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 ...
4
votes
1answer
46 views
4
votes
2answers
149 views
Split string into sub-strings of length n [duplicate]
Possible Duplicate:
Partition string into chunks
How can I split a string into sub strings of length n? For example I have a string
"ABCDEabcde1234"
...
23
votes
4answers
790 views
What is the fastest way to count square-free words?
Background
A word is a string of letters in an alphabet. A square-free word has no adjacent repeating substring. For example, (in the ternary alphabet of {0,1,2}) the words 00, 012121, and 0212012021 ...
6
votes
3answers
261 views
Specifying string patterns in DeleteCases
It seems that DeleteCases is not compatible with string patterns, at least directly (see, for example, this question). Is this true? If so, why is this the case? ...
3
votes
3answers
88 views
Using NumberString, DigitCharacter, or a similar directive to find all string representations of integers in a string
I have a text file containing many, many lines of text like test in the following:
...