>How is this more complete?  It's the exact same regex,
>except for the case-insensitivity!

Yep, I agree.

> if ($file =~ /.*script.*\.exe$/i) {

The .* at the beginning is absolutely not necessary.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jeffrey
Sent: Tuesday, January 29, 2002 11:34 AM
To: [EMAIL PROTECTED]
Subject: Re: Regular expression question


How is this more complete?  It's the exact same regex,
except for the case-insensitivity!

Color me confused...

--- "Edward G. Orton" <[EMAIL PROTECTED]> wrote:
> ----- Original Message -----
> From: "Jeffrey" <[EMAIL PROTECTED]>
> > Maybe something like
> > if ($file =~ /script.*\.exe$/)
> > ?
>
> A more complete test would be:
> if ($file =~ /.*script.*\.exe$/i) {


=====
------------------------------------
Jeffrey Hottle
nkuvu at yahoo dot com

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to