my @equations = /\$([^$]+)\$/;
To get all matches, you'd need the /g option. Also, $] is a special variable, so the dollar sign must be escaped here.
In reply to Re^2: LaTeX: regex or xpath?
by Eliya
in thread LaTeX: regex or xpath?
by toro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |