is an option to string and sequence functions that specifies how to treat overlapping substrings.


Overlaps
is an option to string and sequence functions that specifies how to treat overlapping substrings.
Examples
open all close allBasic Examples (1)
Scope (2)
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:
Tech Notes
Related Guides
History
Introduced in 2004 (5.1)
Text
Wolfram Research (2004), Overlaps, Wolfram Language function, https://reference.wolfram.com/language/ref/Overlaps.html.
CMS
Wolfram Language. 2004. "Overlaps." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Overlaps.html.
APA
Wolfram Language. (2004). Overlaps. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Overlaps.html
BibTeX
@misc{reference.wolfram_2025_overlaps, author="Wolfram Research", title="{Overlaps}", year="2004", howpublished="\url{https://reference.wolfram.com/language/ref/Overlaps.html}", note=[Accessed: 13-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_overlaps, organization={Wolfram Research}, title={Overlaps}, year={2004}, url={https://reference.wolfram.com/language/ref/Overlaps.html}, note=[Accessed: 13-August-2025]}