Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
単純な文字列などの番号があります。「sOm」、「pAl」、「mAn」などの出力を持つ母音正規表現または配列を使用して、'som', 'man', 'pal'母音文字を作成するにはどうすればよいですか?upcase!
'som', 'man', 'pal'
upcase!
"som".gsub(/[aeiou]/, &:upcase) # => "sOm"
また
"som".tr("aeiou", "AEIOU") # => "sOm"