in reply to Re: reg expression
in thread reg expression

A2: How are the clauses to be taken?
I think it are three separate questions a), b) and c).

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^3: reg expression
by JavaFan (Canon) on Aug 29, 2011 at 20:24 UTC
    I think it are three separate questions a), b) and c)
    That's what I initially thought as well. But the question states a regular expression, not regular expressions. It also means the teacher likes trick questions, as the answer to b) is any pattern that matches the empty string. It doesn't mean you're wrong - I just didn't find it likely.
      It also means the teacher likes trick questions
      Bad teacher.

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James