Re: RegEx speed (was: Using regexp to get a substring)

2002-01-07 Thread Jos I. Boumans
s" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "David" <[EMAIL PROTECTED]> Sent: Sunday, January 06, 2002 11:48 PM Subject: RegEx speed (was: Using regexp to get a substring) > That'll work, but on a finer point, if you need to be thinking about > optimi

Re: Using regexp to get a substring

2002-01-06 Thread John W. Krahn
David wrote: > > Hello All, Hello, > I am beginner and need some helps. Thanks a lot! > > The question is, if I have a string, for example > "C:\PerlScripts\TestSamples\StringTest.pl", This string has no back-slashes in it! Just print it if you don't believe me. $ perl -le'$string = "C:\Per

RegEx speed (was: Using regexp to get a substring)

2002-01-06 Thread Gary Hawkins
[mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 06, 2002 1:03 PM > To: [EMAIL PROTECTED]; David > Subject: Re: Using regexp to get a substring > > > "David" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > H

Re: Using regexp to get a substring

2002-01-06 Thread Shawn
"David" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello All, > > I am beginner and need some helps. Thanks a lot! > > The question is, if I have a string, for example > "C:\PerlScripts\TestSamples\StringTest.pl", how do I use regexp to parse > this stri

Re: Using regexp to get a substring

2002-01-06 Thread Jos I. Boumans
x27;ll see it yields the same. a note to make: File::Spec->splitpath will work on any platform.. your regex will have to be modified to work on windows/unix/macos hth, jos - Original Message - From: "David" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, Jan

Using regexp to get a substring

2002-01-06 Thread David
Hello All, I am beginner and need some helps. Thanks a lot! The question is, if I have a string, for example "C:\PerlScripts\TestSamples\StringTest.pl", how do I use regexp to parse this string and get substring after the last backslash ("StringTest.pl"). Thanks in advance! David -- To un