There's more than one way to do things | |
PerlMonks |
Re^2: How to avoid an alphabet and integer next to it in a string?by piscean (Acolyte) |
on Mar 21, 2014 at 19:17 UTC ( [id://1079339]=note: print w/replies, xml ) | Need Help?? |
As runrig suggests below the more general s/H\d*//g; may be more appropriate to your needs.
It does help, but what about Hg element? When I enter Hg, it gives me zero as output.
In Section
Seekers of Perl Wisdom
|
|