On Jul 23, Michael Fowler said:
>On Mon, Jul 23, 2001 at 04:53:28PM -0400, Jeff 'japhy/Marillion' Pinyan wrote:
>> Hopefully, in Perl 5.8 or Perl 6, there will be a much simpler character
>> class subtraction syntax:
>>
>> if ($name =~ /^[\w&&[^0-9_]]+$/) {
>> # valid
>> }
>
>I was under the impression the proposed syntax was:
>
> [\w[^0-9_]]+
Larry (Wall) didn't like the idea of merely an embedded notation: he
feels that using a double character (like &&) will strongly signify the
user's intent, for why a) double a character in a class, and b) right next
to itself?
The basic three operations are:
union: [[X][Y]]
intersection: [[X]&&[Y]]
subtraction: [[X]&&[^Y]]
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
I am Marillion, the wielder of Ringril, known as Hesinaur, the Winter-Sun.
Are you a Monk? http://www.perlmonks.com/ http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc. http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter. Brother #734
** Manning Publications, Co, is publishing my Perl Regex book **
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]