modified reg exp in ruby-script diff_scaf