in reply to Re: One Liner, print multiple regex matches
in thread One Liner, print multiple regex matches

Thank's It worked!

I simply added the quotes and its showing data for both regex matches.

Working code:
perl -nle ' print "$1$2" if /name=(\w+).*age=(\d+)/' filename