in reply to storing string matched by regular expression

See perldoc perlre. Specifically, read about $1 and \1.
  • Comment on Re: storing string matched by regular expression