reg also object.
pattern generate:

-directly
-Regexp.new
-%r{exp}