Christopher Culver <kricxjo.neniuspamajxo at yahoo.com> wrote: > is there a function that can be used to chomp off the last four > characters without having to import the re module? Look up the slice operator in the manual. For example: >>> filename = "mySillyFilename.doc" >>> filename[:-4] 'mySillyFilename'