findsubstring-0.1
توضیحات
Python3 module to find a substring on a string.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | findsubstring-0.1 |
| نام | findsubstring |
| نسخه کتابخانه | 0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Carlos A. Planchón |
| ایمیل نویسنده | bubbledoloresuruguay2@gmail.com |
| آدرس صفحه اصلی | https://github.com/carlosplanchon/findsubstring |
| آدرس اینترنتی | https://pypi.org/project/findsubstring/ |
| مجوز | GPL3 |
# findsubstring
*Python3 module to find a substring on a string.*
Based on Karl Knechtel's answer on Stack Overflow:
https://stackoverflow.com/questions/4664850/find-all-occurrences-of-a-substring-in-python
## Installation
### Install with pip
```
pip3 install -U findsubstring
```
## Usage
```
In [1]: import findsubstring
In [2]: list(
findsubstring.find_all(
str_="spam spam spam spam",
substring="spam"
)
)
Out[2]: [0, 5, 10, 15]
```
نحوه نصب
نصب پکیج whl findsubstring-0.1:
pip install findsubstring-0.1.whl
نصب پکیج tar.gz findsubstring-0.1:
pip install findsubstring-0.1.tar.gz