Test of twoletter algorithm s/^.*-(..).*\.rm$// Input is and output is . Now trying the rename symlink eliminator s/UEFA-Europe(.*)-hi-/UEFA-Europe\1-enUK-00300-/ Input is and output is .