Matthew wrote: > I wasn't sure how to do it but then I read about back references and I > thought that all was well... Alas If any one could lend a hand I would > appreciate it very much. Use raw strings. Like r"\1" instead of "\1". Graham