The Python re module is king; not everytime tho.
re
Recent: Why do lists with the same data have different sizes?