Below, I will roughly follow how I arranged the lecture on regular expressions, while also providing the relevant functions in the code. A regular expression is equivalent to some finite automaton.
example python src/-decode.py --pdf_path ./test/mypdf.pdf --output_path ./test/output.txt --regex "PACIENTE:.*" --remove_text "PACIENTE:" --verbose ...
From Google Search Console to LLMs, regex helps structure and interpret text data efficiently. See how it connects SEO and AI workflows.