http://qs321.pair.com?node_id=670567


in reply to get the rest of the text

Everything in the line after the regex match is stored in the special variable $'.

But note that using this variable (as well as $` and $&) slows down the regex engine in the whole program. So read the warnings in perlre and keep them in mind.