Your regex won't work because of greediness. I think using /g as in page 210 of the cookbook might make a regex work.
LaTeX::Parser from your suggested search is in version 0.01 and buggy. That's the same package I meant above.
EDIT: Ah, you mean LaTeX::TOM! Perfect, I'll try that.
In reply to Re^2: LaTeX: regex or xpath?
by toro
in thread LaTeX: regex or xpath?
by toro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |