2013-02-26 Regex Ruby s="abc" if s =~ /^a+/ then p s # => abc end 否定 s="abc" if s !~ /^a+/ then p s end