Chris Wagner wrote: > At 12:08 AM 9/27/05 -0700, robert johnson wrote: > >>and by the way, *? is redundant. >>* means zero or more. >>? means zero or one. > > > > Actually the *? construct is not a redundancy. It calls for a minimal match > rather than a maximal match, which is the default. Although it was useless > in the example. ;)
Maybe wrong would be a better term for you ? \s* means to grab any WS at the current position (including the case where there is none). \s*? means 0 or 1 of the above which is totally meaningless - you've already eaten all the WS with the \s*, so in my opinion the ? is redundant to what you have already done. -- ,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED] (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] / ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/ -/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff) _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs