Maybe I am missing something here, but why would you run "AI" on that task when you go from formal language to formal language?
I don't get the usage of "regex/heuristics" either. Why can that task not be completely handled by a classical algorithm?
Is it about the removal of non-content parts?