Reference¶
- class GhoStr(disentangle, value, mutate=None)¶
A
str
clone that ignores every second value yielded bydisentangle
.Offers every behavior and method available via
str
alongside the ones detailed bellow.All interactions return a plain
str
object. Usingstr
returns the internal value.- clean()¶
Remove all matches.
- merge(full=False)¶
Remove all sequential matches.
For example, if
X
is matches, then'XXAXBX'
would become'XAXBX'
or'XAXB'
iffull
.This is handy for clearing leftover matches after mutation operations.
- class CleanGhoStr(disentangle, value, mutate=None)¶
Just like its parent, but attempts to keep sequential matches at a minimal.