|
Boost Users : |
From: Stuart Dootson (stuart.dootson_at_[hidden])
Date: 2005-04-05 04:20:00
On Apr 5, 2005 10:00 AM, jordi <jordil2_at_[hidden]> wrote:
> John Maddock wrote:
> >> I would like to know if it's possible to assign an alias/name to a
> >> sub-expression. When using short regex there is no problem nor
> >
> >
> > No that's not supported, but don't forget that you can always use
> > non-marking parenthesis to avoid throwing out too many fields.
> >
> > John.
>
> I already use non-marking parenthesis but when using a long regex it's
> very difficult to decide which is the correct index to define the
> subexpression to use. Furthermore, when using "conditional
> expressiones" in the format strings the difficulties are even more
> obvious...
>
> Thanks anyway for your reply,
>
> Jordi
>
Jordi - something like Regex Coach (http://www.weitz.de/regex-coach/)
makes it a lot easier to work out what match indices to use for the
different captures in your regular expressions...
Stuart Dootson
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