good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Remove elements from an arrayby dimar (Curate) |
on Nov 23, 2004 at 18:01 UTC ( [id://409947]=note: print w/replies, xml ) | Need Help?? |
Remove elements that do not match the RegEx /B.*?y/
Remove elements that *do* match the RegEx /B.*?y/
Note: The other examples in this thread that use 'index' are more preferable for what you asked ... but this is an alternate way in case you are curious. Moreover, you might want to check out Categorized Questions and Answers where you can find fast answers to basic questions like How do I completely remove an element from an array ... categorized Q&A is very useful.
In Section
Seekers of Perl Wisdom
|
|