uwmYoooemu
New Member
I have some html files that include links to files whose filenames include spaces. For example, \[code\]The rain in spain ... <a href="http://stackoverflow.com/path/filename with space.xls">Filename</a>falls mainly on the plain.<a href="http://stackoverflow.com/path/2nd filename with space.doc">2nd Filename</a>\[/code\]There are often multiple links like this within the file. I would like to replace the spaces within just the filename itself but not touch spaces elsewhere in the file. For example:\[code\]<a href="http://stackoverflow.com/path/filename_with_space.xls">Filename</a>\[/code\]I have tried with SED, but I can't seem to isolate the substitution to be between 2 regex patterns (sed seems to work line by line). Any assistance would be appreciated.