m/^M[A-Z]{3}/ #### perl -le'foreach ( <*.txt> ) { print if /^M[A-Z]{3}/ }'