If I remember my chemistry correctly, and I probably don't, but can't the same element appear more than once in a formula, and if so then using a hash would elide some of the elements?
In reply to Re^2: Recursive capture of a variable number of elements using regexp
by jwkrahn
in thread Recursive capture of a variable number of elements using regexp
by seaver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |