in reply to Re^2: question about the star(*) quantifier
in thread question about the star(*) quantifier

Nope. \d* means "zero or more numbers" not "one or more numbers". It is perfectly valid for \d* to match the empty string, which is "zero numbers". If you want to be sure to match a number, use \d+, which means "one or more numbers".

-sam

  • Comment on Re^3: question about the star(*) quantifier