title: method match1.regex seems not working in ruby
body: <p>I'm following a tutorial on regular expressions in ruby, but a method called regex that seems not working</p>
  
  <pre><code>Tutorial
  
  re = /(\w*)\s(\w*),\s?([\w\s]*)/
  match1 = str1.match re
  match2 = str2.match re
  match1.regex # =&gt; wsw,s[ws]     (this is IRB's unique way of showing regular expressions; it will still work normally)
  
  My console
  
  The regex method the method throws an error
  
  1.9.3-p547 :033 &gt; re = /(\w*)\s(\w*),\s?([\w\s]*)/
   =&gt; /(\w*)\s(\w*),\s?([\w\s]*)/ 
  1.9.3-p547 :034 &gt;     match1 = str1.match re
   =&gt; #&lt;MatchData "Joe Schmo, Plumber" 1:"Joe" 2:"Schmo" 3:"Plumber"&gt; 
  1.9.3-p547 :035 &gt;     match2 = str2.match re
   =&gt; #&lt;MatchData "Stephen Harper, Prime Minister" 1:"Stephen" 2:"Harper" 3:"Prime Minister"&gt; 
  1.9.3-p547 :036 &gt; match1.regex
  NoMethodError: undefined method `regex' for #&lt;MatchData "Joe Schmo, Plumber" 1:"Joe" 2:"Schmo" 3:"Plumber"&gt;
      from (irb):36
      from /home/fernando/.rvm/rubies/ruby-1.9.3-p547/bin/irb:12:in `&lt;main&gt;'
  1.9.3-p547 :037 &gt; 
  </code></pre>