Just eliminate the Hydrogen:
$molform =~ s/H\d*//g;
In reply to Re^4: How to avoid an alphabet and integer next to it in a string?
by runrig
in thread How to avoid an alphabet and integer next to it in a string?
by piscean
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |