Re: mistaken newline

2006-05-20 Thread Carter Thompson
On May 19, 2006, at 10:10 PM, Chris Wagner wrote: At 05:52 PM 5/19/2006 -0700, $Bill Luebkert wrote: That's not the problem - he's only changing the first \. His regex does need the g but he said he was getting output of C:/path/with\new/content. All slashes fixed except the one before n. C

Re: mistaken newline

2006-05-20 Thread Richard A. Wells
Carter, You might also consider using brace delimiters on your substitution to make it more legible: $root =~ s{\\}{/}g; Cheers, Richard ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv

Re: mistaken newline

2006-05-19 Thread $Bill Luebkert
Chris Wagner wrote: > At 05:52 PM 5/19/2006 -0700, $Bill Luebkert wrote: > >>That's not the problem - he's only changing the first \. > > > His regex does need the g but he said he was getting output of > C:/path/with\new/content. All slashes fixed except the one before n. > Carter are u sure

Re: mistaken newline

2006-05-19 Thread Chris Wagner
At 05:52 PM 5/19/2006 -0700, $Bill Luebkert wrote: >That's not the problem - he's only changing the first \. His regex does need the g but he said he was getting output of C:/path/with\new/content. All slashes fixed except the one before n. Carter are u sure u stated ur problem right? With the r

Re: mistaken newline

2006-05-19 Thread $Bill Luebkert
Timothy Johnson wrote: > For that you can use the \Q and\E operators > >/\Q^Root:\s+(.*)$\E/; > > Check out 'perldoc perlre' That's not the problem - he's only changing the first \. The problem is his RE is: $root =~ s/\\/\//; and should be: $root =~ s/\\/\//g; > From: [EM

RE: mistaken newline

2006-05-19 Thread Timothy Johnson
For that you can use the \Q and\E operators /\Q^Root:\s+(.*)$\E/; Check out 'perldoc perlre' -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carter Thompson Sent: Friday, May 19, 2006 4:37 PM To: Perl Users Subject: mistaken newline Root: C: