[VPM] detecting non-integers

Carl B. Constantine cconstan at csc.UVic.CA
Wed May 7 11:31:04 CDT 2003


*On Tue May 06, 2003 at 08:24:16PM -0700, Michael S. Joyce (michael at negativespace.net) wrote:
> You can see that it matches the 10, when it shouldn't. The problem is that 
> ? matches zero or one times, and * matches zero or more times. And matching 
> zero times is considered a successful match.
> 
> I think a better way to do it would be to reverse the logic somewhat.

You're right. That does work better. Thanks.

-- 
Carl B. Constantine         University of Victoria
Programmer Analyst          http://www.csc.uvic.ca
UNIX System Administrator   Victoria, BC, Canada
cconstan at csc.uvic.ca        ELW A220, 721-8753



More information about the Victoria-pm mailing list