in reply to LaTeX: regex or xpath?
XPath is for XML. LaTeχ is not XML.
Don't use Google, use LaTeX. I have no experience with any of the modules, but I have written some LaTeχ myself.
To extract "all text between $ signs (that make up LaTeχ mathematical sections), I'd simply use a regular expression:
my @equations = /\$([^$]+)\$/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: LaTeX: regex or xpath?
by Eliya (Vicar) on Jun 09, 2011 at 20:25 UTC | |
|
Re^2: LaTeX: regex or xpath?
by toro (Beadle) on Jun 09, 2011 at 20:26 UTC | |
by Eliya (Vicar) on Jun 09, 2011 at 20:31 UTC | |
by toro (Beadle) on Jun 09, 2011 at 22:14 UTC |