If you work with strings in your Python scripts and you're writing obscure logic to process them, then you need to look into regex in Python. It lets you describe patterns instead of writing ...
Smarter document extraction starts here.
"You need to have a tolerance for an occasional failure or two on the way to the summits in your life." You don't get to live your ideal life accidentally. It takes work, and that work has to be done ...