in reply to Re: Negative Lookahead Assertion Problem
in thread Negative Lookahead Assertion Problem

monarch,
I have to agree with ysth. The \s* is not meaningless because it is followed immediately by a literal (which is what his comment was referring to). To be a complete match it has to match 0 or more whitespaces and an open paren. In your solution there has to be at least 1 space - which doesn't fit the bill.

Cheers - L~R

  • Comment on Re^2: Negative Lookahead Assertion Problem