Evaluated proc rpic name { . http://i.imgur.com/[rpick [string map {http:// {} www {} imgur {} com {} . {} / {} # {} , { }} [regsub -all {\d} [pics $name] ""]]].jpg }