>> >> to nit pick the regex, it should be '\.htm'. A period in a regex means >> "any >> character". > > But Res are overkill anyway for this task. > > new_name=old_name[1:]+'l' > > should be enough. > Untested. > no because you have to find the string first (-: