Python3 module to case insensitive replace of strings.
Project description
caseireplace
Python3 module to case insensitive replace of strings.
Installation
Install with pip
pip3 install -U caseireplace
Usage
In [1]: import caseireplace
In [2]: caseireplace.insensitive_replace(
text="I want a hIPpo for my birthday",
old="hippo",
new="giraffe"
)
Out[2]: 'I want a giraffe for my birthday'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
caseireplace-0.1.tar.gz
(1.7 kB
view details)
File details
Details for the file caseireplace-0.1.tar.gz
.
File metadata
- Download URL: caseireplace-0.1.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31c136c7aede996bc2bb01aca1f1707276aad553e966da980c5941fa379902dd |
|
MD5 | dfc45f01678b2ca45fddde4554cafe38 |
|
BLAKE2b-256 | 8cff78affb29630bd4982d6b069b5cfa3b580400f6d3a5ae9e14542340fd545c |