Definition at line 83 of file SerialSubstitution.py.
def SerialSubstitution.RegExSubstitutionClass.__init__ |
( |
|
self, |
|
|
|
match, |
|
|
|
replacement, |
|
|
|
exceptions = [] |
|
) |
| |
Definition at line 84 of file SerialSubstitution.py.
84 def __init__(self, match, replacement, exceptions = []):
85 SubstitutionClass.__init__(self)
def __init__(self, match, replacement, exceptions=[])
def SerialSubstitution.RegExSubstitutionClass.__call__ |
( |
|
self, |
|
|
|
s, |
|
|
|
context = None |
|
) |
| |
Definition at line 93 of file SerialSubstitution.py.
95 if pattern.search(s)
is not None:
return s
96 return self.regex.sub(self.
repl, s)
def __call__(self, s, context=None)
def SerialSubstitution.RegExSubstitutionClass.__str__ |
( |
|
self | ) |
|
def SerialSubstitution.RegExSubstitutionClass.Describe |
( |
|
self | ) |
|
SerialSubstitution.RegExSubstitutionClass.exceptions |
SerialSubstitution.RegExSubstitutionClass.regex |
SerialSubstitution.RegExSubstitutionClass.repl |
The documentation for this class was generated from the following file: