meshesnot has asked for the wisdom of the Perl Monks concerning the following question:
I want to change it to this:bla.bla.bla = SomeWindows/Path With/Spaces In/It
The challenge is InstallAnywhere gives me two places to type, one says "Search For" and one says "Replace With". So if I only had one space to replace, and I didn't need the /g, I think it would look something like this:bla.bla.bla = SomeWindows/Path\ With/Spaces\ In/It
Search For:
Replace With:^(bla.bla.bla\s=\s)([\S]+)(\s)([\S]+)$
Even this isn't working (it is in a test perl program, but not in IA, so I will call them about that tomorrow). But even if I get this to work, it won't help me if there are two spaces in the path. I need a global search and replace. So, I was wondering if I need to venture off into uncharted territory and use the cloistered pattern modifiers, but I have to admit, I am lost when I read that chapter in the Programming Perl. Any ideas are greatly appreciated.$1$2\\$3$4
meshesnot
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pattern Match / Replace without s/
by tachyon (Chancellor) on Apr 14, 2003 at 00:45 UTC | |
|
Re: Pattern Match / Replace without s/
by tall_man (Parson) on Apr 14, 2003 at 04:10 UTC | |
|
Re: Pattern Match / Replace without s/
by Oberon (Monk) on Apr 14, 2003 at 19:19 UTC | |
|
Re: Pattern Match / Replace without s/
by meshesnot (Novice) on Apr 14, 2003 at 20:32 UTC |