Skip to content

🔍 Case insensitive string replace() alternative for Python 3. Does NOT use regex (regular expressions) in order to prevent ReDoS attacks.

License

Notifications You must be signed in to change notification settings

gnat/python-replace-case-insensitive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Case Insensitive replace() for Python

Case insensitive string replace() alternative for Python 3.

Prevents ReDoS attacks by NOT using regex (or re or regular expressions).

Example

from replace_ci import *
result = replace_ci("Why am I not in the StAnDard LIBRarY?", "standard library", "string library")
print(result)
# Why am I not in the string library?

License

Public domain.

About

🔍 Case insensitive string replace() alternative for Python 3. Does NOT use regex (regular expressions) in order to prevent ReDoS attacks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages