Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
What i want to do is convert all spaces in the names which lies within / and /, / and \, \ and \ to underscores(_) to all the lines in the file. Each column is seperated by spaces, so i don't want them to be disturbed. So my file would look like124334 2323 c:\program files\somefile 124334 2323 c:\program files\somepath\somefile 124334 2323 c:\program files\with space/somefile 124334 2323 c:\program files\with space/with another space/somefile .... .. .. ...
Thanks!124334 2323 c:\program_files\somefile 124334 2323 c:\program_files\somepath\somefile 124334 2323 c:\program_files\with_space/somefile 124334 2323 c:\program_files\with_space/with_another_space/somefile
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File regex question
by BrowserUk (Patriarch) on Sep 16, 2003 at 07:28 UTC | |
by Anonymous Monk on Sep 16, 2003 at 08:54 UTC | |
by Abigail-II (Bishop) on Sep 16, 2003 at 09:02 UTC | |
by BrowserUk (Patriarch) on Sep 16, 2003 at 09:14 UTC | |
|
Re: File regex question
by pzbagel (Chaplain) on Sep 16, 2003 at 07:32 UTC | |
|
Re: File regex question
by gjb (Vicar) on Sep 16, 2003 at 07:36 UTC | |
|
Re: File regex question
by delirium (Chaplain) on Sep 16, 2003 at 11:59 UTC |