I think both in sed and perl you can use any symbols you wish to delineate
the RegEx. # works, but / is traditionally used in Perl.
That is to say, in Perl these two lines are the same:
$in =~ s/C:\\Dir 1\\Dir 2\\Dir with more spaces/replacement/;
$in =~ s#C:\\Dir 1\\Dir 2\\Dir with more spaces#re
>How about providing the code that you are working with?
>
>This ought to work:
>s/C:\\Dir 1\\Dir 2\\Dir with more spaces/replacement/
>
>__CODE__
>$in = 'C:\Dir 1\Dir 2\Dir with more spaces'; $in =~ s/C:\\Dir 1\\Dir
>2\\Dir with more spaces/replacement/; print "$in\n"; __OUTPUT__
>replacement
I h
> I don't understand why you would run sed. Perl can be run from the
> command line by hand as well.
>
>
> --
> Chas. Owens
> wonkden.net
> The most important skill a programmer can have is the ability to read.
Yeah, sorry should have been more clear. The server that will run the Sed based
secti
On Wed, Feb 27, 2008 at 3:07 PM, Joseph L. Casale
<[EMAIL PROTECTED]> wrote:
> I am trying to replace all occurrences of a windows path such as "C:\Dir
> 1\Dir 2\Dir with more spaces" to a similar path, and have it case
> insensitive, and I can't make it work.
> Anyone got an idea? I am hoping t
How about providing the code that you are working with?
This ought to work:
s/C:\\Dir 1\\Dir 2\\Dir with more spaces/replacement/
__CODE__
$in = 'C:\Dir 1\Dir 2\Dir with more spaces';
$in =~ s/C:\\Dir 1\\Dir 2\\Dir with more spaces/replacement/;
print "$in\n";
__OUTPUT__
replacement