pat : string or compiled regex
String can be a character sequence or regular expression.
New in version 0.20.0: pat also accepts a compiled regex.
repl : string or callable
Replacement string or a callable. The callable is passed the regex match object and must return a replacement string to be used. See
re.sub()
.New in version 0.20.0: repl also accepts a callable.
n : int, default -1 (all)
Number of replacements to make from start
case : boolean, default None
- If True, case sensitive (the default if pat is a string)
- Set to False for case insensitive
- Cannot be set if pat is a compiled regex
flags : int, default 0 (no flags)
- re module flags, e.g. re.IGNORECASE
- Cannot be set if pat is a compiled regex
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4