method

regexp

v1_9_3_125 - Show latest stable - Class: MatchData
regexp()
public

Returns the regexp.

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