http://qs1969.pair.com?node_id=1025435


in reply to Regex Matching Query

In every match of regular expression, pre matched string, actual matched string and post matched string can be accessed from $`, $& and $' variables. For more details, check man perlre.