in reply to Re^2: reg expression
in thread reg expression

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.

Replies are listed 'Best First'.
Re^4: reg expression
by CountZero (Bishop) on Aug 29, 2011 at 21:44 UTC
    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