in reply to Backtracking problem with .*(?!bar)

I have found people don't like to use the .*, I try to use it as infrequently as possible. Maybe one of these would help you out

.{0,} - Match 0 or more times. .?? - Match 0 or 1 times (as few as possible).

--
paul

Replies are listed 'Best First'.
•Re: Re: Backtracking problem with .*(?!bar)
by merlyn (Sage) on Sep 24, 2003 at 20:04 UTC
      Except that .* is better for golf!
Re: Re: Backtracking problem with .*(?!bar)
by perlguy (Deacon) on Sep 24, 2003 at 14:21 UTC
    Could I get an example from you on when using the ?? quantifier would be appropriate? I find this a strange example to show as an alternative to the infamous dot star.