Forum Moderators: open
My mum has spent about 5 months working on a website using dreamweaver. I told her it was pretty easy to use and though nothing of it. I've just received the site on CD but noticed she has hundreds of links and file/folder names with spaces :( - I forgot to mention things like this.
Anyway, Im looking to see if anyone knows of any software which can convert spaces in link/files/folder to the - (dash)?
There are thousands of pages and files and doing this manually would be a real set back.
If not, I guess I could probably whip up a PHP script to do it - but if there is something available I do not want to reinvent the wheel :)
If you have a dozen files/folders with spaces in their names and several hundred links to those files, then Dreamweaver itself will do all you need - simply rename the file or folder in the Site Files window and Dreamweaver will fix all the links.
Surely, if your Mum is a webmaster novice, she won't have manually typed up a set of ten thousand files? If she's produced the content manually, the effort to change the filenames (not any of the content) in Dreamweaver will be miniscule in comparison!
A space, by the way, isn't an illegal character in a URL.
DerekH
spaces are not illegal, no, but they do cause problems with some browsers and search engine bots - or so I am made to believe. If this is not the case please enlighting me.
Anyway, I've create a script with regular expressions to fix the code and the filenames/folders.... just needs a few tweeks.
I know dreamweaver can do a find and replace of the source within folders, but I dont believe it supports regualar expressions
What version of DreamWeaver are you using?
My Find and Replace dialogue has a tick box captioned "use regular expressions" which is what you said it can't do.
DerekH