in reply to Re^2: Print string next to pattern matching?
in thread Print string next to pattern matching?

Sure, see perlintro#Parentheses for capturing and http://perldoc.perl.org/perlrequick.html#Extracting-matches
  • Comment on Re^3: Print string next to pattern matching?