2009年5月3日 星期日

string substitution

string1="the language name is ruby"
puts string1.sub('a','A')
puts string1.gsub('a','A')

沒有留言:

張貼留言