Return to Snippet

Revision: 45735
at May 6, 2011 16:50 by almazom


Initial Code
list = Dir.entries(@fullpath2images)
     
for l in list
  if /^plan_#{params[:id]}_(sm|big)_.*/ =~l
    File.delete(l)
  end
end

Initial URL

                                

Initial Description

                                

Initial Title
Ruby Regexp example for filter files

Initial Tags
ruby, regexp, filter

Initial Language
Ruby