go ahead... be a heretic | |
PerlMonks |
Using regex to extract keysby seaver (Pilgrim) |
on Sep 24, 2003 at 20:52 UTC ( [id://294014]=perlquestion: print w/replies, xml ) | Need Help?? |
seaver has asked for the wisdom of the Perl Monks concerning the following question:
Dear all, I have a large hash where every key in the hash is of the format:\w\d\d, and I want to use keys to extract an array of keys that match any \d\d pattern, (hence ignoring letters) like so: This doesnt work as it is, but is there a possible solution, or should I just step through the keys ahd store an array of the ones that match?
Cheers
Back to
Seekers of Perl Wisdom
|
|