lastMatchまたは$&

パターンマッチングで最後にマッチした文字列を返します。lastMatchは省略してRegExp.$&と記述することもできます。

書式

★=RegExp.lastMatch
   ★=変数