This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Overlaps

Overlaps
is an option to StringCases, StringCount, and StringPosition that specifies how to treat overlapping substrings.
Falseallow no overlaps
Allallow all overlaps
Trueallow overlaps starting at different positions
Allow no overlaps:
Allow all overlaps:
Allow overlaps starting at different positions:
Allow no overlaps:
In[1]:=
Click for copyable input
Out[1]=
Allow all overlaps:
In[2]:=
Click for copyable input
Out[2]=
Allow overlaps starting at different positions:
In[3]:=
Click for copyable input
Out[3]=
Overlaps is set to False by default in StringCases and StringCount:
The result from StringPosition contains positions of overlapping substrings:
Use Overlaps->False to obtain positions of nonoverlapping strings:
New in 5.1