StringPosition
Usage
Notes
Further Examples
The letter "t" occurs in the  and  positions of this string.
In[1]:=
|
Out[1]=
|
This gives the position of the start of each word in the string.
In[2]:=
|
Out[2]=
|
This gives the position of substrings starting with "a" and ending with "t". Overlaps are included by default.
In[3]:=
|
Out[3]=
|
Without overlaps, only the whole string is returned.
In[4]:=
|
Out[4]=
|
Using the option, even multiple substrings starting at the same position are included.
In[5]:=
|
Out[5]=
|
To get the shortest substrings, use ShortestMatch.
In[6]:=
|
Out[6]=
|
|