> The following ruby expression
> / (.*local.xml?)/.match('xpl.xml, demoUK.xml, met_local.xml, cfg.xml')[1]
> returns
> => "demoUK.xml, met_local.xml"

I'll take a crack-- how about

#############################################3
string = 'xpl.xml, demoUK.xml, met_local.xml, cfg.xml'

files = string.split(', ') #comma space

files.each {|x|
puts x if x=~ /local.xml/
}
#####################################

Does that help?
-Chris

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to