method

regexp

regexp()
public

Returns the regexp.

m = /a.*b/.match("abc")
m.regexp #=> /a.*b/