From: Lorenzo Bettini (bettini_at_[hidden])
Date: 2007-05-05 13:06:35
is there a way to access the subexpressions in a tree-like manner?
For instance, suppose I have this regular expression
that matches against this string
the results are
I need to format the matched part with tags, say, like this
but in order to do this, when I inspect what, I'd need to know that
it has two subexpressions, while I cannot know that what and what
are indeed subexpressions of what...
That is to say, subexpressions are flattened.
thanks in advance
-- Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze ICQ# lbetto, 16080134 (GNU/Linux User # 158233) HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com http://www.gnu.org/software/src-highlite http://www.gnu.org/software/gengetopt http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk