|
Boost Users : |
From: emarkp (mping_at_[hidden])
Date: 2002-08-18 18:04:00
--- In Boost-Users_at_y..., "John Maddock" <john_maddock_at_c...> wrote:
> > Drat. I thought that might be it after reading the docs, but I
> > figured that the expression "? would also match leftmost longest
> > (that is, a single " is better than the null string). Also, I
> > thought that by putting a non-capturing group (?:"?) around the
> > expression, this would leftmost-longest match the ". And yet it
> > didn't.
>
> Leftmost longest applies only to marked sub-expressions - there is
> no concept of greedy or non-greedy repeats as such in the POSIX
> standard. (?:\"?) isn't a marked subexpression BTW :-)
Hrm. Makes sense. However, I just thought of something. There were
two expressions like that, and while the first one had trouble, the
second one didn't. That is, I didn't have to group the " on the
second expression.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net