Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Functions | |
def | sub |
def | gsub |
def | split |
def | splitx |
def | intsplit |
def | capwords |
def | compile |
def | clear_cache |
def | expand |
def | test |
Variables | |
list | __all__ = ["sub","gsub","split","splitx","capwords"] |
dictionary | cache = {} |
Regexp-based split and replace using the obsolete regex module. This module is only for backward compatibility. These operations are now provided by the new regular expression module, "re". sub(pat, repl, str): replace first occurrence of pattern in string gsub(pat, repl, str): replace all occurrences of pattern in string split(str, pat, maxsplit): split string using pattern as delimiter splitx(str, pat, maxsplit): split string using pattern as delimiter plus return delimiters
def regsub.capwords | ( | str, | |
pat = '[^a-zA-Z0-9_]+' |
|||
) |
Definition at line 110 of file regsub.py.
References string.capitalize(), dospath.join(), and splitx().
def regsub.compile | ( | pat) |
def regsub.gsub | ( | pat, | |
repl, | |||
str | |||
) |
def regsub.intsplit | ( | str, | |
pat, | |||
maxsplit, | |||
retain | |||
) |
def regsub.split | ( | str, | |
pat, | |||
maxsplit = 0 |
|||
) |
def regsub.splitx | ( | str, | |
pat, | |||
maxsplit = 0 |
|||
) |
def regsub.sub | ( | pat, | |
repl, | |||
str | |||
) |
def regsub.test | ( | ) |