Replace file name with text from same file.
Posted: Wed Oct 19, 2016 9:33 pm
I have about 3000 html files that I would like to rename to the <title>file title</title>.
I can find the file name within the file with a Reg Ex: search pattern, but do not know if or how the program would then use this file name to 'save as' the file with the new searched variable.
Example:
Reg Ex: <title>(.*)</title> = file name
Then save the file in a different directory with the new file name.
Thanks if anyone has a solution.
I can find the file name within the file with a Reg Ex: search pattern, but do not know if or how the program would then use this file name to 'save as' the file with the new searched variable.
Example:
Reg Ex: <title>(.*)</title> = file name
Then save the file in a different directory with the new file name.
Thanks if anyone has a solution.