Skip to main content

Python3 module to find a substring on a string.

Project description


Python3 module to find a substring on a string.

Based on Karl Knechtel's answer on Stack Overflow:


Install with pip

pip3 install -U findsubstring


In [1]: import findsubstring

In [2]: list(
        str_="spam spam spam spam",

Out[2]: [0, 5, 10, 15]

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

findsubstring-0.1.tar.gz (1.8 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page