s/^.*-(..).*\.rm$// s/^.*(..)..\.rm$// is the input variable file
is the output variable twoletter
is the output variable nootwoletter