in reply to Regular expression and rename file help

Safer would be to open the input file, get the data, process and write out to a new file. Once all is completed you can delete (unlink) the original file. This last stage could be left out until you have the rest of the program working. That way your starting file is still available.

Other replies and your own diagnostics have solved the issues you originally asked.

  • Comment on Re: Regular expression and rename file help