Mega Code Archive
Categories
/
Ruby
/
Development
Replace Perl or Python with Ruby
line = 'Perl or Python' puts line.gsub(/Perl|Python/, 'Ruby')