StringTools[Repeats] - compute the maximal repeated substrings in a string
|
Calling Sequence
|
|
Repeats( s )
|
|
Description
|
|
•
|
The Repeats(s) command returns an expression sequence of lists indicating the maximal repeated substrings of the input string s.
|
•
|
Each list has the form , where pos1 is the position in s at which the first member of the repeat starts, pos2 is the position in s at which the second member of the repeat starts, and len is the length of the repeated substring appearing at positions pos1 and pos2 in s.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
|
|
Download Help Document
Was this information helpful?