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.