Regular Expressions for Bioinformatics
Quick Reference
| Function | Returns | Use | |----------|---------|-----| | re.search(pat, s) | First match object or None | Check if pattern exists | | re.findall(pat, s) | List of strings (or tuples with groups) | All non-overlapping matches | | re.finditer(pat, s) | Iterator of match objects | All matches with positions | | re.sub(pat, repl, s) | Modified string | Replace matches | | re.split(pat, s) | List of strings | Split on pattern
[Description truncada. Veja o README completo no GitHub.]