Reference¶
- class GhoStr(disentangle, value, mutate=None)¶
A
strclone that ignores every second value yielded bydisentangle.Offers every behavior and method available via
stralongside the ones detailed bellow.All interactions return a plain
strobject. Usingstrreturns the internal value.- clean()¶
Remove all matches.
- merge(full=False)¶
Remove all sequential matches.
For example, if
Xis 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.