Overlaps

Overlaps
is an option to StringCases, StringCount, and StringPosition that specifies how to treat overlapping substrings.

DetailsDetails

  • Possible settings for Overlaps are:
  • Falseallow no overlaps
    Allallow all overlaps
    Trueallow overlaps starting at different positions

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

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]=
New in 5.1
New to Mathematica? Find your learning path »
Have a question? Ask support »