Augie De Blieck Jr.
3/22/2007 12:44:00 PM
You'd want to use a regular expression, I think. Probably a nested
loop. I could do this in Perl in about two minutes, but I'm still
adjusting my thinking for Ruby.
lines.each do |line|
tags.each do |tag|
final << line if line !~ /#{tag.chop}/
end
end
Then write the "final" array to whatever file you want to.
I threw in the ".chop" there to get rid of the newline character on the tag