remove element of array that match string criteria

remove element of array that match string criteria

I have an array
array = ['page1.aspx', pic1.jpg, pix.png,flash.swf,index2.aspx, pictures.gif];
remove = [jpg,gif,swf,png]
 
How could I do to remove the elements that match the 'remove' list?
 
Any help will be highly apreciated