2008-09-23 先頭がA-Zで始まるか判定 Ruby str = ARGV[0] if str =~ /^[A-Z]./ puts str + ":先頭がアルファベット大文字です。\n" else puts str + ":先頭がアルファベット大文字ではありません。\n" end