On 11/14/05, Jerrad Pierce <[EMAIL PROTECTED]> wrote: > This can be said of many such tests. I'd just like to point out that your > last example, isn't. there is, *strictly speaking* only one correct answer.
Actually there are none. There is merely a "lease incorrect" answer. > > Which one of the following regular expressions matches lines beginning > > with an integer followed by a period and a space? > > > Choice 1 ^[0-9]*\.[ ] > > Choice 2 ^\d\.\s > > Choice 3 ^\d+\.[ ] > > Choice 4 ^\n.\s > > Choice 5 ^[0-9]\.\s > > 1: Matches '. ' > 2: Matches "3.\t" > 3. Correct > 4. Not even close > 5. Matches "3.\t" [...] 3 will match: "000. foo" 3 will not match: "-5. foo" I consider both of those to be flaws. Cheers, Ben _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

