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
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
[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
"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
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
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