Is there any way to do this?
I have an array:
["file_1.jar", "file_2.jar","file_3.pom"]
And I want to save only "file_3.pom", what I want to do is something like this:
array.drop_while{|f| /.pom/.match(f)}
But this way I save everything in an array, but is "file_3.pom" is there a way to do something like "not_match"?
I found them:
f !~ /.pom/
OR
f !~ /*.pom/
But none of them returns what I expect.
source
share