[Rails] Re: Regexp pre_match

2012-09-06 Thread John Merlino
yep, last_match returns a MatchData object, which contains some wrapper methods, including a string of the last successful pattern match. Hence, pre_match would fall under MatchData, not Regexp. On Sep 6, 10:21 am, Rick wrote: > http://www.ruby-doc.org/core-1.9.3/MatchData.html#method-i-pre_match

[Rails] Re: Regexp pre_match

2012-09-06 Thread Rick
http://www.ruby-doc.org/core-1.9.3/MatchData.html#method-i-pre_match On Thursday, September 6, 2012 1:40:31 AM UTC-4, John Merlino wrote: > > I looked in ruby documentation > > http://www.ruby-doc.org/core-1.9.3/Regexp.html > > I cannot find a method called pre_match but its used in Rails... >