perl -e '"hello awesome" =~ /(el).*(om)/ and print $2;' #### perl -e '"hello awesome" =~ /(el).*(om)/ and print $^N;'