Print only the matching group in Perl
ID: print-only-the-matching-group-in-perl
Print only the matching group in Perl by Ciro Santilli 35 Updated 2025-01-29 +Created 1970-01-01
stackoverflow.com/questions/5617314/perl-regex-print-the-matched-value/5617355#5617355
perl -lne 'print for /mykey=(\d+)/'
New to topics? Read the docs here!