ietf-mta-filters
[Top] [All Lists]

Re: variables: greedy or non-greedy matching

2003-05-01 08:22:35


On Tue, Apr 29, 2003 at 06:01:19PM -0700, 
ned(_dot_)freed(_at_)mrochek(_dot_)com wrote:
[Ned Freed]:

  [Jutta Degener]:
  > So let's stay greedy; thanks for setting me straight!

  No problem ;-) And let's also remember that a necessary corollary
  here is that the regexp we end up choosing needs to support both
  greedy and non-greedy matching.

why?  I thought we only needed that if :matches was non-greedy.

I wouldn't mind having non-greedy regexps, but they're not in POSIX.2
which the regex draft refers to.

Jutta's argument, which I believe is valid, is that expectations can only
be met by having both types available.

Most cases of it can also be met with character classes.

That's why I said "let's stay greedy" in the piece you quote above --
I realized that I wanted to solve problems with non-greed that can
be solved with regexes.

Fair enough. It isn't a point we need to address in the context of the
variables draft in any case.

                                Ned

<Prev in Thread] Current Thread [Next in Thread>
  • Re: variables: greedy or non-greedy matching, ned . freed <=