On May 23, Randal L. Schwartz said:
>>>>>> "Jeff" == Jeff Pinyan <[EMAIL PROTECTED]> writes:
>
>Jeff> if (length($x) and $x =~ /\D/) { fail() }
>
>Simpler...
>
> if ($x =~ /\d/ and $x !~ /\D/) { winner! }
Yeah, I was thinking of that too. merlyn++
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
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
** I need a publisher for my book "Learning Perl's Regular Expressions" **
- Regular Expressions Kyrytow, Stefan
- Re: Regular Expressions Brett W. McCoy
- Re: Regular Expressions Jos Boumans
- Re: Regular Expressions Jeff Pinyan
- Re: Regular Expressions Randal L. Schwartz
- Re: Regular Expression... Jeff Pinyan
- Re: Regular Expressions Jeff Pinyan
- Re: Regular Expressions Timothy Kimball
- regular expressions Salvador Lopez
- Re: regular expressions Akshay Arora
- Re: regular expressions Dan Grossman
- Re: regular expressions Jeff 'japhy/Marillion' Pinyan
- Re: regular expressions Jos I. Boumans
- RE: regular expressions Wagner-David
- RE: regular expressions PURMONEN, Joni
